@Test public void givenRealmWhenKeyStoreNotFoundThenReturnNull() { realm.setGrantedKeyStoreName("XXX.jks"); realm.setGrantedKeyStorePassphrase("gazerty"); final X509Certificate[] clientCertChain = new X509Certificate[] {cert}; final X509AuthenticationToken token = new X509AuthenticationToken(clientCertChain, "XXX"); assertNull(realm.doGetAuthenticationInfo(token)); }
@Override protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) { return doGetX509AuthenticationInfo((X509AuthenticationToken) token); }
X509KeystoreFileRealm extends AbstractX509Realm { @Override protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) { return doGetX509AuthenticationInfo((X509AuthenticationToken) token); } }
X509KeystoreFileRealm extends AbstractX509Realm { @Override protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) { return doGetX509AuthenticationInfo((X509AuthenticationToken) token); } X509KeystoreFileRealm(); }
X509KeystoreFileRealm extends AbstractX509Realm { @Override protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) { return doGetX509AuthenticationInfo((X509AuthenticationToken) token); } X509KeystoreFileRealm(); @Override boolean supports(AuthenticationToken token); @Override Class<X509AuthenticationToken> getAuthenticationTokenClass(); Map<String, String> getCertificateDnRoleMapping(); void setCertificateDnRoleMapping(Map<String, String> certificateDnRoleMapping); }
X509KeystoreFileRealm extends AbstractX509Realm { @Override protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token) { return doGetX509AuthenticationInfo((X509AuthenticationToken) token); } X509KeystoreFileRealm(); @Override boolean supports(AuthenticationToken token); @Override Class<X509AuthenticationToken> getAuthenticationTokenClass(); Map<String, String> getCertificateDnRoleMapping(); void setCertificateDnRoleMapping(Map<String, String> certificateDnRoleMapping);  }