public void updateKeyinfo(String realm,String entityName,Map<String,Set<String>> extValues,Map<String,Set<String>> stdValues,boolean isIDP) throws AMConsoleException {
  String keysize=getResult(stdValues,TF_KEY_NAME);
  String algorithm=getResult(stdValues,TF_ALGORITHM);
  Set<String> signingCertAliases;
  Set<String> encryptionCertAliases;
  if (isIDP) {
    encryptionCertAliases=extValues.get(IDP_ENCRYPT_CERT_ALIAS);
    signingCertAliases=extValues.get(IDP_SIGN_CERT_ALIAS);
  }
 else {
    encryptionCertAliases=extValues.get(SP_ENCRYPT_CERT_ALIAS);
    signingCertAliases=extValues.get(SP_SIGN_CERT_ALIAS);
  }
  int keysi=!StringUtils.isEmpty(keysize) ? Integer.parseInt(keysize) : 128;
  String alg=StringUtils.isEmpty(algorithm) ? XMLCipher.AES_128 : algorithm;
  try {
    SAML2MetaSecurityUtils.updateProviderKeyInfo(realm,entityName,signingCertAliases,true,isIDP,alg,keysi);
    SAML2MetaSecurityUtils.updateProviderKeyInfo(realm,entityName,encryptionCertAliases,false,isIDP,alg,keysi);
  }
 catch (  SAML2MetaException e) {
    debug.warning("SAMLv2ModelImpl.updateKeyinfo:",e);
    throw new AMConsoleException(getErrorString(e));
  }
}

public void updateKeyinfo ( String realm , String entityName , Map < String , Set < String > > extValues , Map < String , Set < String > > stdValues , boolean isIDP ) throws AMConsoleException { String keysize = getResult ( stdValues , TF_KEY_NAME ) ; String algorithm = getResult ( stdValues , TF_ALGORITHM ) ; Set < String > signingCertAliases ; Set < String > encryptionCertAliases ; if ( isIDP ) { encryptionCertAliases = extValues . get ( IDP_ENCRYPT_CERT_ALIAS ) ; signingCertAliases = extValues . get ( IDP_SIGN_CERT_ALIAS ) ; } else { encryptionCertAliases = extValues . get ( SP_ENCRYPT_CERT_ALIAS ) ; signingCertAliases = extValues . get ( SP_SIGN_CERT_ALIAS ) ; } int keysi = ! StringUtils . isEmpty ( keysize ) ? Integer . parseInt ( keysize ) : 128 ; String alg = StringUtils . isEmpty ( algorithm ) ? XMLCipher . AES_128 : algorithm ; try { SAML2MetaSecurityUtils . updateProviderKeyInfo ( realm , entityName , signingCertAliases , true , isIDP , alg , keysi ) ; SAML2MetaSecurityUtils . updateProviderKeyInfo ( realm , entityName , encryptionCertAliases , false , isIDP , alg , keysi ) ; } catch ( SAML2MetaException e ) { debug . warning ( "SAMLv2ModelImpl.updateKeyinfo:" , e ) ; throw new AMConsoleException ( getErrorString ( e ) ) ; } }
saves the signing and encryption values for the entity .
