Class DigestMethodBuilder

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

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

    • DigestMethodBuilder

      public DigestMethodBuilder()
  • Method Details

    • builder

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

      public static org.opensaml.saml.ext.saml2alg.DigestMethod digestMethod(String algorithm)
      Utility method that creates a DigestMethod.
      Parameters:
      algorithm - the algorithm
      Returns:
      a DigestMethod instance
    • getObjectType

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

      public DigestMethodBuilder algorithm(String algorithm)
      Assigns the algorithm.
      Parameters:
      algorithm - the algorithm
      Returns:
      the builder