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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionAssigns the algorithm.static DigestMethodBuilder
builder()
Creates a newDigestMethodBuilder
instance.static org.opensaml.saml.ext.saml2alg.DigestMethod
digestMethod
(String algorithm) Utility method that creates aDigestMethod
.protected Class
<org.opensaml.saml.ext.saml2alg.DigestMethod> Returns the object type.Methods inherited from class se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
Constructor Details
-
DigestMethodBuilder
public DigestMethodBuilder()
-
-
Method Details
-
builder
Creates a newDigestMethodBuilder
instance.- Returns:
- a SigningMethodBuilder instance
-
digestMethod
Utility method that creates aDigestMethod
.- Parameters:
algorithm
- the algorithm- Returns:
- a DigestMethod instance
-
getObjectType
Returns the object type.- Specified by:
getObjectType
in classAbstractSAMLObjectBuilder<org.opensaml.saml.ext.saml2alg.DigestMethod>
- Returns:
- the object type
-
algorithm
Assigns the algorithm.- Parameters:
algorithm
- the algorithm- Returns:
- the builder
-