Class SigningMethodBuilder

java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<org.opensaml.saml.ext.saml2alg.SigningMethod>
se.swedenconnect.opensaml.saml2.metadata.build.SigningMethodBuilder
All Implemented Interfaces:
SAMLObjectBuilder<org.opensaml.saml.ext.saml2alg.SigningMethod>

public class SigningMethodBuilder extends AbstractSAMLObjectBuilder<org.opensaml.saml.ext.saml2alg.SigningMethod>
A builder for alg:SigningMethod elements.
Author:
Martin Lindström (martin@idsec.se)
  • Constructor Details

    • SigningMethodBuilder

      public SigningMethodBuilder()
  • Method Details

    • builder

      public static SigningMethodBuilder builder()
      Creates a new SigningMethodBuilder instance.
      Returns:
      a SigningMethodBuilder instance
    • signingMethod

      public static org.opensaml.saml.ext.saml2alg.SigningMethod signingMethod(String algorithm)
      Utility method that creates a SigningMethod element having only its Algorithm attribute assigned.
      Parameters:
      algorithm - the algorithm
      Returns:
      a SigningMethod instance
    • signingMethod

      public static org.opensaml.saml.ext.saml2alg.SigningMethod signingMethod(String algorithm, Integer minKeySize, Integer maxKeySize)
      Utility method that creates a SigningMethod element.
      Parameters:
      algorithm - the algorithm
      minKeySize - minimum key size (in bits)
      maxKeySize - maximum key size (in bits)
      Returns:
      a SigningMethod instance
    • getObjectType

      protected Class<org.opensaml.saml.ext.saml2alg.SigningMethod> getObjectType()
      Returns the object type.
      Specified by:
      getObjectType in class AbstractSAMLObjectBuilder<org.opensaml.saml.ext.saml2alg.SigningMethod>
      Returns:
      the object type
    • algorithm

      public SigningMethodBuilder algorithm(String algorithm)
      Assigns the algorithm.
      Parameters:
      algorithm - the algorithm
      Returns:
      the builder
    • minKeySize

      public SigningMethodBuilder minKeySize(Integer keySize)
      Assigns the minimum size in bits for the key.
      Parameters:
      keySize - minimum key size
      Returns:
      the builder
    • maxKeySize

      public SigningMethodBuilder maxKeySize(Integer keySize)
      Assigns the maximum size in bits for the key.
      Parameters:
      keySize - maximum key size
      Returns:
      the builder