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 of
DigestMethod
values.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBuild anXMLObject
instance representing this parameter.clone()
Clone the parameter instance.protected void
static DigestMethod
fromXMLObject
(DigestMethod xmlObject) Create and initialize a new instance from the specifiedXMLObject
.Get the algorithm URI.void
setAlgorithm
(String newAlgorithm) Set the algorithm URI.Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
Field Details
-
algorithm
Algorithm URI.
-
-
Constructor Details
-
DigestMethod
public DigestMethod()
-
-
Method Details
-
doInitialize
- Overrides:
doInitialize
in classAbstractInitializableComponent
- Throws:
ComponentInitializationException
-
getAlgorithm
Get the algorithm URI.- Returns:
- the algorithm URI
-
setAlgorithm
Set the algorithm URI.- Parameters:
newAlgorithm
- the algorithm URI
-
clone
Clone the parameter instance.- Specified by:
clone
in interfaceCloneableKeyAgreementParameter
- Overrides:
clone
in classObject
- Returns:
- the cloned parameter
-
buildXMLObject
Build anXMLObject
instance representing this parameter.- Specified by:
buildXMLObject
in interfaceXMLExpressableKeyAgreementParameter
- Returns:
- the XML object instance
-
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
-