public CredentialParams lookup ( String correlationId ) throws ApplicationException { if ( _credentials . size ( ) == 0 ) return null ; // Return connection that doesn't require discovery for ( CredentialParams credential : _credentials ) { if ( ! credential . useCredentialStore ( ) ) return credential ; } // Return connection that require discovery for ( CredentialParams credential : _credentials ) { if ( credential . useCredentialStore ( ) ) { CredentialParams resolvedConnection = lookupInStores ( correlationId , credential ) ; if ( resolvedConnection != null ) return resolvedConnection ; } } return null ; }
Looks up component credential parameters . If credentials are configured to be retrieved from Credential store it finds a ICredentialStore and lookups credentials there .