Enum SigningAlgorithm

java.lang.Object
java.lang.Enum<SigningAlgorithm>
software.amazon.awscdk.services.cognito.SigningAlgorithm
All Implemented Interfaces:
Serializable, Comparable<SigningAlgorithm>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-05T03:43:40.864Z") @Stability(Stable) public enum SigningAlgorithm extends Enum<SigningAlgorithm>
Signing algorithms for SAML requests.

Example:

 UserPool userpool = new UserPool(this, "Pool");
 // specify the metadata as a file content
 // specify the metadata as a file content
 UserPoolIdentityProviderSaml.Builder.create(this, "userpoolIdpFile")
         .userPool(userpool)
         .metadata(UserPoolIdentityProviderSamlMetadata.file("my-file-contents"))
         // Whether to require encrypted SAML assertions from IdP
         .encryptedResponses(true)
         // The signing algorithm for the SAML requests
         .requestSigningAlgorithm(SigningAlgorithm.RSA_SHA256)
         // Enable IdP initiated SAML auth flow
         .idpInitiated(true)
         .build();
 // specify the metadata as a URL
 // specify the metadata as a URL
 UserPoolIdentityProviderSaml.Builder.create(this, "userpoolidpUrl")
         .userPool(userpool)
         .metadata(UserPoolIdentityProviderSamlMetadata.url("https://my-metadata-url.com"))
         .build();
 
  • Enum Constant Details

    • RSA_SHA256

      @Stability(Stable) public static final SigningAlgorithm RSA_SHA256
      RSA with SHA-256.
  • Method Details

    • values

      public static SigningAlgorithm[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SigningAlgorithm valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null