Class DigestMethod
java.lang.Object
net.shibboleth.shared.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 TypeMethodDescriptionclone()protected voidstatic DigestMethodfromXMLObject(DigestMethod xmlObject) Create and initialize a new instance from the specifiedXMLObject.Get the algorithm URI.voidsetAlgorithm(String newAlgorithm) Set the algorithm URI.Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitialized
-
Field Details
-
algorithm
Algorithm URI.
-
-
Constructor Details
-
DigestMethod
public DigestMethod()
-
-
Method Details
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
getAlgorithm
Get the algorithm URI.- Returns:
- the algorithm URI
-
setAlgorithm
Set the algorithm URI.- Parameters:
newAlgorithm- the algorithm URI
-
clone
- Specified by:
clonein interfaceCloneableKeyAgreementParameter- Overrides:
clonein classObject
-
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
-