Class DigestMethodBuilder
- java.lang.Object
-
- se.litsec.opensaml.core.AbstractSAMLObjectBuilder<DigestMethod>
-
- se.litsec.opensaml.saml2.metadata.build.DigestMethodBuilder
-
- All Implemented Interfaces:
SAMLObjectBuilder<DigestMethod>
public class DigestMethodBuilder extends AbstractSAMLObjectBuilder<DigestMethod>
A builder foralg:DigestMethod
elements.- Author:
- Martin Lindström (martin.lindstrom@litsec.se)
-
-
Constructor Summary
Constructors Constructor Description DigestMethodBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DigestMethodBuilder
algorithm(String algorithm)
Assigns the algorithm.static DigestMethodBuilder
builder()
Creates a newDigestMethodBuilder
instance.static DigestMethod
digestMethod(String algorithm)
Utility method that creates aDigestMethod
.protected Class<DigestMethod>
getObjectType()
Returns the object type.-
Methods inherited from class se.litsec.opensaml.core.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
-
-
-
Method Detail
-
builder
public static DigestMethodBuilder builder()
Creates a newDigestMethodBuilder
instance.- Returns:
- a
SigningMethodBuilder
instance
-
digestMethod
public static DigestMethod digestMethod(String algorithm)
Utility method that creates aDigestMethod
.- Parameters:
algorithm
- the algorithm- Returns:
- a
DigestMethod
instance
-
getObjectType
protected Class<DigestMethod> getObjectType()
Returns the object type.- Specified by:
getObjectType
in classAbstractSAMLObjectBuilder<DigestMethod>
- Returns:
- the object type
-
algorithm
public DigestMethodBuilder algorithm(String algorithm)
Assigns the algorithm.- Parameters:
algorithm
- the algorithm- Returns:
- the builder
-
-