use of org.apereo.cas.support.realm.RealmPasswordVerificationCallbackHandler in project cas by apereo.
the class CoreWsSecuritySecurityTokenServiceConfiguration method casRealm.
@RefreshScope
@Bean
public RealmProperties casRealm() {
final WsFederationProperties.SecurityTokenService wsfed = casProperties.getAuthn().getWsfedIdP().getSts();
final WsFederationProperties.IdentityProvider idp = casProperties.getAuthn().getWsfedIdP().getIdp();
final RealmProperties realm = new RealmProperties();
realm.setIssuer(wsfed.getRealm().getIssuer());
final Properties p = CryptoUtils.getSecurityProperties(wsfed.getRealm().getKeystoreFile(), wsfed.getRealm().getKeystorePassword(), wsfed.getRealm().getKeystoreAlias());
realm.setSignatureCryptoProperties(p);
realm.setCallbackHandler(new RealmPasswordVerificationCallbackHandler(wsfed.getRealm().getKeyPassword()));
return realm;
}
Aggregations