OpenAMClientRegistration(AMIdentity amIdentity,PEMDecoder pemDecoder,OpenIdResolverService resolverService,OAuth2ProviderSettings providerSettings,ClientAuthenticationFailureFactory failureFactory) throws InvalidClientException {
  this.amIdentity=amIdentity;
  this.pemDecoder=pemDecoder;
  this.resolverService=resolverService;
  this.providerSettings=providerSettings;
  try {
    this.digest=MessageDigest.getInstance("SHA-256");
  }
 catch (  NoSuchAlgorithmException e) {
    throw failureFactory.getException("SHA-256 algorithm MessageDigest not available");
  }
}

OpenAMClientRegistration ( AMIdentity amIdentity , PEMDecoder pemDecoder , OpenIdResolverService resolverService , OAuth2ProviderSettings providerSettings , ClientAuthenticationFailureFactory failureFactory ) throws InvalidClientException { this . amIdentity = amIdentity ; this . pemDecoder = pemDecoder ; this . resolverService = resolverService ; this . providerSettings = providerSettings ; try { this . digest = MessageDigest . getInstance ( "SHA-256" ) ; } catch ( NoSuchAlgorithmException e ) { throw failureFactory . getException ( "SHA-256 algorithm MessageDigest not available" ) ; } }
constructs a new openamclientregistration .
