lengthXXX()
methods provide access to the internal Key
objects:
KeyInfo
was constructed from an Element
(Signature verification), the lengthXXX()
methods searches
for child elements of ds:KeyInfo
for known types. KeyInfo
was constructed from scratch (during
Signature generation), the lengthXXX()
methods return the number
of XXXs
objects already passed to the KeyInfoaddXXX()
methods are used for adding Objects of the
appropriate type to the KeyInfo
. This is used during signature
generation.
The itemXXX(int i)
methods return the i'th object of the
corresponding type.
The containsXXX()
methods return whether the KeyInfo
contains the corresponding type.
Modifier and Type | Field and Description |
---|---|
private List | internalKeyResolvers
Stores the individual (per-KeyInfo) |
private static final Logger | |
private static final List | |
private boolean | |
private List | storageResolvers
Field storageResolvers |
private List |
Access | Constructor and Description |
---|---|
public | |
public |
Modifier and Type | Method and Description |
---|---|
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
private X509Certificate | |
public boolean | Returns: If the KeyInfo contains a DEREncodedKeyValue nodeMethod containsDEREncodedKeyValue |
public boolean | Returns: If the KeyInfo contains a KeyInfoReference nodeMethod containsKeyInfoReference |
public boolean | |
public boolean | |
public boolean | |
public boolean | |
public boolean | Returns: If the KeyInfo contains a RetrievalMethod nodeMethod containsRetrievalMethod |
public boolean | |
public boolean | Returns: If the KeyInfo contains a UnknownElement nodeMethod containsUnknownElement |
public boolean | |
public String | getBaseLocalName()
Implements abstract com. Returns the localname of the Elements of the sub-class. |
public String | |
public PrivateKey | |
pack-priv PrivateKey | Returns: the private key contained in this KeyInfoSearches the per-KeyInfo KeyResolvers for private keys |
pack-priv PrivateKey | Returns: the private key contained in this KeyInfoSearches the library wide KeyResolvers for Private keys |
public PublicKey | |
pack-priv PublicKey | Returns: The public key contained in this Node.Searches the per-KeyInfo KeyResolvers for public keys |
pack-priv PublicKey | Returns: The public key contained in this Node.Searches the library wide KeyResolvers for public keys |
public SecretKey | Returns: the secret key contained in this KeyInfoThis method returns a secret (symmetric) key. |
pack-priv SecretKey | Returns: the secret key contained in this KeyInfoSearches the per-KeyInfo KeyResolvers for secret keys |
pack-priv SecretKey | Returns: the secret key contained in this KeyInfoSearches the library wide KeyResolvers for Secret keys |
public X509Certificate | |
pack-priv X509Certificate | Returns: The certificate contained in this KeyInfoMethod getX509CertificateFromInternalResolvers |
pack-priv X509Certificate | Returns: The certificate contained in this KeyInfoThis method uses each System-wide |
public boolean | |
public DEREncodedKeyValue | Returns: the asked DEREncodedKeyValue element, null if the index is too bigMethod itemDEREncodedKeyValue |
pack-priv KeyResolverSpi | Returns: the KeyResolverSpi for the index.the index i)Method itemInternalKeyResolver |
public KeyInfoReference | Returns: the asked KeyInfoReference element, null if the index is too bigMethod itemKeyInfoReference |
public KeyName | Returns: the asked KeyName element, null if the index is too bigMethod itemKeyName |
public KeyValue | Returns: the asked KeyValue element, null if the index is too bigMethod itemKeyValue |
public MgmtData | Returns: the asked MgmtData element, null if the index is too bigMethod itemMgmtData |
public PGPData | Returns: the asked PGPData element, null if the index is too bigMethod itemPGPData |
public RetrievalMethod | Returns: the asked RetrievalMethod element, null if the index is too bigMethod itemRetrievalMethod |
public SPKIData | Returns: the asked SPKIData element, null if the index is too bigMethod itemSPKIData |
public Element | Returns: the element number of the unknown elementsindex i)Method itemUnknownElement |
public X509Data | Returns: the asked X509Data element, null if the index is too bigMethod itemX509Data |
public int | Returns: the number of the DEREncodedKeyValue tagsMethod lengthDEREncodedKeyValue |
pack-priv int | |
public int | Returns: the number of the KeyInfoReference tagsMethod lengthKeyInfoReference |
public int | |
public int | |
public int | |
public int | |
public int | |
public int | |
public int | Returns: the number of the UnknownElement tagsMethod lengthUnknownElement NOTE possibly buggy. |
public int | |
public void | registerInternalKeyResolver(KeyResolverSpi realKeyResolver)
This method is used to add a custom |
public void | |
public void |
internalKeyResolvers | back to summary |
---|---|
private List<KeyResolverSpi> internalKeyResolvers Stores the individual (per-KeyInfo) |
LOG | back to summary |
---|---|
private static final Logger LOG Hides com. |
nullList | back to summary |
---|---|
private static final List<StorageResolver> nullList |
secureValidation | back to summary |
---|---|
private boolean secureValidation |
storageResolvers | back to summary |
---|---|
private List<StorageResolver> storageResolvers Field storageResolvers |
x509Datas | back to summary |
---|---|
private List<X509Data> x509Datas |
KeyInfo | back to summary |
---|---|
public KeyInfo(Document doc) Constructor KeyInfo |
KeyInfo | back to summary |
---|---|
public KeyInfo(Element element, String baseURI) throws XMLSecurityException Constructor KeyInfo |
add | back to summary |
---|---|
public void add(KeyName keyname) Method add |
add | back to summary |
---|---|
public void add(DSAKeyValue dsakeyvalue) Method add |
add | back to summary |
---|---|
public void add(RSAKeyValue rsakeyvalue) Method add |
add | back to summary |
---|---|
public void add(PublicKey pk) Method add |
add | back to summary |
---|---|
public void add(KeyValue keyvalue) Method add |
add | back to summary |
---|---|
public void add(MgmtData mgmtdata) Method add |
add | back to summary |
---|---|
public void add(PGPData pgpdata) Method addPGPData |
add | back to summary |
---|---|
public void add(RetrievalMethod retrievalmethod) Method add |
add | back to summary |
---|---|
public void add(SPKIData spkidata) Method add |
add | back to summary |
---|---|
public void add(X509Data x509data) Method addX509Data |
add | back to summary |
---|---|
public void add(DEREncodedKeyValue derEncodedKeyValue) Method add |
add | back to summary |
---|---|
public void add(KeyInfoReference keyInfoReference) Method add |
addDEREncodedKeyValue | back to summary |
---|---|
public void addDEREncodedKeyValue(PublicKey pk) throws XMLSecurityException Method addDEREncodedKeyValue |
addKeyInfoReference | back to summary |
---|---|
public void addKeyInfoReference(String URI) throws XMLSecurityException Method addKeyInfoReference |
addKeyName | back to summary |
---|---|
public void addKeyName(String keynameString) Method addKeyName |
addKeyValue | back to summary |
---|---|
public void addKeyValue(PublicKey pk) Method addKeyValue |
addKeyValue | back to summary |
---|---|
public void addKeyValue(Element unknownKeyValueElement) Method addKeyValue |
addMgmtData | back to summary |
---|---|
public void addMgmtData(String mgmtdata) Method addMgmtData |
addRetrievalMethod | back to summary |
---|---|
public void addRetrievalMethod(String uri, Transforms transforms, String Type) Method addRetrievalMethod |
addStorageResolver | back to summary |
---|---|
public void addStorageResolver(StorageResolver storageResolver) Method addStorageResolver |
addUnknownElement | back to summary |
---|---|
public void addUnknownElement(Element element) Method addUnknownElement |
applyCurrentResolver | back to summary |
---|---|
private X509Certificate applyCurrentResolver(String uri, KeyResolverSpi keyResolver) throws KeyResolverException |
containsDEREncodedKeyValue | back to summary |
---|---|
public boolean containsDEREncodedKeyValue() Method containsDEREncodedKeyValue
|
containsKeyInfoReference | back to summary |
---|---|
public boolean containsKeyInfoReference() Method containsKeyInfoReference
|
containsKeyName | back to summary |
---|---|
public boolean containsKeyName() Method containsKeyName
|
containsKeyValue | back to summary |
---|---|
public boolean containsKeyValue() Method containsKeyValue
|
containsMgmtData | back to summary |
---|---|
public boolean containsMgmtData() Method containsMgmtData
|
containsPGPData | back to summary |
---|---|
public boolean containsPGPData() Method containsPGPData
|
containsRetrievalMethod | back to summary |
---|---|
public boolean containsRetrievalMethod() Method containsRetrievalMethod
|
containsSPKIData | back to summary |
---|---|
public boolean containsSPKIData() Method containsSPKIData
|
containsUnknownElement | back to summary |
---|---|
public boolean containsUnknownElement() Method containsUnknownElement
|
containsX509Data | back to summary |
---|---|
public boolean containsX509Data() Method containsX509Data
|
getBaseLocalName | back to summary |
---|---|
public String getBaseLocalName() Implements abstract com. Doc from com. Returns the localname of the Elements of the sub-class. |
getId | back to summary |
---|---|
public String getId() Returns the
|
getPrivateKey | back to summary |
---|---|
public PrivateKey getPrivateKey() throws KeyResolverException This method returns a private key. This is for Key Transport in XML Encryption.
|
getPrivateKeyFromInternalResolvers | back to summary |
---|---|
pack-priv PrivateKey getPrivateKeyFromInternalResolvers() throws KeyResolverException Searches the per-KeyInfo KeyResolvers for private keys
|
getPrivateKeyFromStaticResolvers | back to summary |
---|---|
pack-priv PrivateKey getPrivateKeyFromStaticResolvers() throws KeyResolverException Searches the library wide KeyResolvers for Private keys
|
getPublicKey | back to summary |
---|---|
public PublicKey getPublicKey() throws KeyResolverException This method returns the public key.
|
getPublicKeyFromInternalResolvers | back to summary |
---|---|
pack-priv PublicKey getPublicKeyFromInternalResolvers() throws KeyResolverException Searches the per-KeyInfo KeyResolvers for public keys
|
getPublicKeyFromStaticResolvers | back to summary |
---|---|
pack-priv PublicKey getPublicKeyFromStaticResolvers() throws KeyResolverException Searches the library wide KeyResolvers for public keys
|
getSecretKey | back to summary |
---|---|
public SecretKey getSecretKey() throws KeyResolverException This method returns a secret (symmetric) key. This is for XML Encryption.
|
getSecretKeyFromInternalResolvers | back to summary |
---|---|
pack-priv SecretKey getSecretKeyFromInternalResolvers() throws KeyResolverException Searches the per-KeyInfo KeyResolvers for secret keys
|
getSecretKeyFromStaticResolvers | back to summary |
---|---|
pack-priv SecretKey getSecretKeyFromStaticResolvers() throws KeyResolverException Searches the library wide KeyResolvers for Secret keys
|
getX509Certificate | back to summary |
---|---|
public X509Certificate getX509Certificate() throws KeyResolverException Method getX509Certificate
|
getX509CertificateFromInternalResolvers | back to summary |
---|---|
pack-priv X509Certificate getX509CertificateFromInternalResolvers() throws KeyResolverException Method getX509CertificateFromInternalResolvers
|
getX509CertificateFromStaticResolvers | back to summary |
---|---|
pack-priv X509Certificate getX509CertificateFromStaticResolvers() throws KeyResolverException This method uses each System-wide
|
isEmpty | back to summary |
---|---|
public boolean isEmpty() Method isEmpty
|
itemDEREncodedKeyValue | back to summary |
---|---|
public DEREncodedKeyValue itemDEREncodedKeyValue(int i) throws XMLSecurityException Method itemDEREncodedKeyValue
|
itemInternalKeyResolver | back to summary |
---|---|
pack-priv KeyResolverSpi itemInternalKeyResolver(int i) Method itemInternalKeyResolver
|
itemKeyInfoReference | back to summary |
---|---|
public KeyInfoReference itemKeyInfoReference(int i) throws XMLSecurityException Method itemKeyInfoReference
|
itemKeyName | back to summary |
---|---|
public KeyName itemKeyName(int i) throws XMLSecurityException Method itemKeyName
|
itemKeyValue | back to summary |
---|---|
public KeyValue itemKeyValue(int i) throws XMLSecurityException Method itemKeyValue
|
itemMgmtData | back to summary |
---|---|
public MgmtData itemMgmtData(int i) throws XMLSecurityException Method itemMgmtData
|
itemPGPData | back to summary |
---|---|
public PGPData itemPGPData(int i) throws XMLSecurityException Method itemPGPData
|
itemRetrievalMethod | back to summary |
---|---|
public RetrievalMethod itemRetrievalMethod(int i) throws XMLSecurityException Method itemRetrievalMethod
|
itemSPKIData | back to summary |
---|---|
public SPKIData itemSPKIData(int i) throws XMLSecurityException Method itemSPKIData
|
itemUnknownElement | back to summary |
---|---|
public Element itemUnknownElement(int i) Method itemUnknownElement
|
itemX509Data | back to summary |
---|---|
public X509Data itemX509Data(int i) throws XMLSecurityException Method itemX509Data
|
lengthDEREncodedKeyValue | back to summary |
---|---|
public int lengthDEREncodedKeyValue() Method lengthDEREncodedKeyValue
|
lengthInternalKeyResolver | back to summary |
---|---|
pack-priv int lengthInternalKeyResolver() Method lengthInternalKeyResolver
|
lengthKeyInfoReference | back to summary |
---|---|
public int lengthKeyInfoReference() Method lengthKeyInfoReference
|
lengthKeyName | back to summary |
---|---|
public int lengthKeyName() Method lengthKeyName
|
lengthKeyValue | back to summary |
---|---|
public int lengthKeyValue() Method lengthKeyValue
|
lengthMgmtData | back to summary |
---|---|
public int lengthMgmtData() Method lengthMgmtData
|
lengthPGPData | back to summary |
---|---|
public int lengthPGPData() Method lengthPGPData
|
lengthRetrievalMethod | back to summary |
---|---|
public int lengthRetrievalMethod() Method lengthRetrievalMethod
|
lengthSPKIData | back to summary |
---|---|
public int lengthSPKIData() Method lengthSPKIData
|
lengthUnknownElement | back to summary |
---|---|
public int lengthUnknownElement() Method lengthUnknownElement NOTE possibly buggy.
|
lengthX509Data | back to summary |
---|---|
public int lengthX509Data() Method lengthX509Data
|
registerInternalKeyResolver | back to summary |
---|---|
public void registerInternalKeyResolver(KeyResolverSpi realKeyResolver) This method is used to add a custom |
setId | back to summary |
---|---|
public void setId(String id) Sets the
|
setSecureValidation | back to summary |
---|---|
public void setSecureValidation(boolean secureValidation) Set whether secure processing is enabled or not. The default is false. |