javax.xml.crypto.enc.keyinfo

Interface DHKeyValue

All Superinterfaces:
XMLStructure

  1. public interface DHKeyValue
  2. extends XMLStructure
A representation of XML DHKeyValue element as defined in the W3C Recommendation for XML-Encryption Syntax and Processing. The XML schema definition is defined as:

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
TYPE
URI identifying the DHKeyValue type: http://www.w3.org/2001/04/xmlenc#DHKeyValue.

Method Summary

Modifier and Type Method and Description
  1. java.security.PublicKey
getPublicKey()
Returns the public key of this DHKeyValue
Methods inherited from interface javax.xml.crypto.XMLStructure
isFeatureSupported

Field Detail

TYPE

  1. static final java.lang.String TYPE
URI identifying the DHKeyValue type: http://www.w3.org/2001/04/xmlenc#DHKeyValue. This can be specified as the value of the type parameter in the RetrievalMethod class to identify a DHKeyValue structure.

Method Detail

getPublicKey

  1. java.security.PublicKey getPublicKey( )
  2. throws java.security.KeyException
Returns the public key of this DHKeyValue
Returns:
the public key of this DHKeyValue
Throws:
java.security.KeyException - if this DHKeyValue cannot be converted to a PublicKey