if (cls.isAssignableFrom(credentialClass)) { IdentityStore<?> identityStore = null; try { store = getIdentityStoreAndInitializeContext(context, identityConfiguration, storeConfig); }
catch (ClassCastException cce) { throw MESSAGES.storeUnexpectedType(identityStore.getClass(), CredentialStore.class); }
// if we found a specific handler for the credential, immediately return. if (cls.equals(credentialClass)) { return store; }
}
|