public static class IndependentKeySelectorImpl.KeyInfoHints extends Object implements KeyInfo
| Modifier and Type | Field and Description |
|---|---|
protected AgreementMethod |
agreementMethod_
An optional AgreementMethod element.
|
protected EncryptedKey |
encryptedKey_
An optional EncryptedKey element.
|
protected KeyName |
keyName_
An optional KeyName element.
|
protected KeyValue |
keyValue_
An optional KeyValue element.
|
protected X509Certificate |
rawCert_
An optional raw certificate referenced by a RetrievalMethod.
|
protected List |
x509Data_
A list of optional X509Data elements.
|
| Constructor and Description |
|---|
KeyInfoHints(KeyInfo keyInfo,
XMLCryptoContext context)
Creates a new instance of this
KeyInfoHints with the
specified KeyInfo. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
collectKeyInfo(XMLStructure structure,
XMLCryptoContext context)
Puts the given XML
structure into the corresponding member
variable. |
protected void |
dereferenceRetrievalMethod(RetrievalMethod retrievalMethod,
XMLCryptoContext context)
Dereferences the given RetrievalMethod and calls
collectKeyInfo(XMLStructure, XMLCryptoContext) for the
dereferenced KeyInfo element. |
List |
getContent()
Returns an
unmodifiable list containing the key information. |
String |
getId()
Return the optional Id attribute of this
KeyInfo, which may be
useful for referencing this KeyInfo from other XML structures. |
protected KeyName |
getKeyName() |
boolean |
isFeatureSupported(String arg0)
Indicates whether a specified feature is supported.
|
void |
marshal(XMLStructure arg0,
XMLCryptoContext arg1)
Marshals the key info to XML.
|
protected EncryptedKey encryptedKey_
protected AgreementMethod agreementMethod_
protected KeyValue keyValue_
protected KeyName keyName_
protected List x509Data_
protected X509Certificate rawCert_
public KeyInfoHints(KeyInfo keyInfo, XMLCryptoContext context) throws KeySelectorException
KeyInfoHints with the
specified KeyInfo.keyInfo - the KeyInfocontext - the contextKeySelectorExceptionprotected KeyName getKeyName()
protected void collectKeyInfo(XMLStructure structure, XMLCryptoContext context) throws KeySelectorException
structure into the corresponding member
variable. <element ref="ds:KeyName"/> <element
ref="ds:KeyValue"/> <element ref="ds:RetrievalMethod"/>
<element ref="ds:X509Data"/> <element name='EncryptedKey'
type='xenc:EncryptedKeyType'/> <element name="AgreementMethod"
type="xenc:AgreementMethodType"/> IndependentKeySelectorImpl.KeyInfoHints if you need to resolve other KeyInfo
information, like structure - the XMLstructure to put into the corresponding member variablecontext - the context for unmarshaling of KeyInfo referenced by a
RetreivalMethodKeySelectorExceptionprotected void dereferenceRetrievalMethod(RetrievalMethod retrievalMethod, XMLCryptoContext context) throws KeySelectorException
collectKeyInfo(XMLStructure, XMLCryptoContext) for the
dereferenced KeyInfo element.retrievalMethod - the retrieval method to dereferencecontext - the context for dereferencingKeySelectorExceptionpublic List getContent()
javax.xml.crypto.dsig.keyinfo.KeyInfounmodifiable list containing the key information. Each entry of the list
is an XMLStructure.
If there is a public subclass representing the type of
XMLStructure, it is returned as an instance of that class (ex:
an X509Data element would be returned as an instance of
X509Data).
getContent in interface KeyInfoXMLStructure s in
this KeyInfo. Never returns null or an
empty list.public String getId()
javax.xml.crypto.dsig.keyinfo.KeyInfoKeyInfo, which may be
useful for referencing this KeyInfo from other XML structures.public boolean isFeatureSupported(String arg0)
javax.xml.crypto.XMLStructureisFeatureSupported in interface XMLStructurearg0 - the feature name (as an absolute URI)true if the specified feature is supported,
false otherwisepublic void marshal(XMLStructure arg0, XMLCryptoContext arg1) throws MarshalException
javax.xml.crypto.dsig.keyinfo.KeyInfomarshal in interface KeyInfoarg0 - a mechanism-specific structure containing the parent node that the
marshalled key info will be appended toarg1 - the XMLCryptoContext containing additional context (may
be null if not applicable)MarshalException - if the key info cannot be marshalled© 2002-2005 IAIK, © 2004, 2006 - 2019 Stiftung SIC