Class DigestMethod
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.xmlsec.agreement.impl.DigestMethod
-
- All Implemented Interfaces:
Cloneable,Component,DestructableComponent,InitializableComponent,CloneableKeyAgreementParameter,KeyAgreementParameter,XMLExpressableKeyAgreementParameter
public class DigestMethod extends AbstractInitializableComponent implements XMLExpressableKeyAgreementParameter, CloneableKeyAgreementParameter
Key agreement parameter to support use ofDigestMethodvalues.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDigestMethod.ParserImplementation ofKeyAgreementParameterParser.
-
Constructor Summary
Constructors Constructor Description DigestMethod()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLObjectbuildXMLObject()DigestMethodclone()protected voiddoInitialize()static DigestMethodfromXMLObject(DigestMethod xmlObject)Create and initialize a new instance from the specifiedXMLObject.StringgetAlgorithm()Get the algorithm URI.voidsetAlgorithm(String newAlgorithm)Set the algorithm URI.-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
-
-
-
Field Detail
-
algorithm
@Nullable private String algorithm
Algorithm URI.
-
-
Method Detail
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
getAlgorithm
@Nullable public String getAlgorithm()
Get the algorithm URI.- Returns:
- the algorithm URI
-
setAlgorithm
public void setAlgorithm(@Nullable String newAlgorithm)Set the algorithm URI.- Parameters:
newAlgorithm- the algorithm URI
-
clone
public DigestMethod clone()
- Specified by:
clonein interfaceCloneableKeyAgreementParameter- Overrides:
clonein classObject
-
buildXMLObject
@Nonnull public XMLObject buildXMLObject()
- Specified by:
buildXMLObjectin interfaceXMLExpressableKeyAgreementParameter
-
fromXMLObject
@Nonnull public static DigestMethod fromXMLObject(@Nonnull DigestMethod xmlObject) throws ComponentInitializationException
Create and initialize a new instance from the specifiedXMLObject.- Parameters:
xmlObject- the XML object- Returns:
- new parameter instance
- Throws:
ComponentInitializationException- if component initialization fails
-
-