@ Override public boolean get ( URIish uri , CredentialItem ... items ) throws UnsupportedCredentialItem { for ( final CredentialItem item : items ) { if ( item instanceof CredentialItem . StringType && item . getPromptText ( ) . startsWith ( PROMPT ) ) { ( ( CredentialItem . StringType ) item ) . setValue ( this . passphrase ) ; continue ; } throw new UnsupportedCredentialItem ( uri , item . getClass ( ) . getName ( ) + ":" + item . getPromptText ( ) ) ; } return true ; }
Ask for the credential items to be populated with the passphrase .