org.apache.jcp.xml.dsig.internal.dom
Class DOMKeyInfoFactory

java.lang.Object
  extended by javax.xml.crypto.dsig.keyinfo.KeyInfoFactory
      extended by org.apache.jcp.xml.dsig.internal.dom.DOMKeyInfoFactory

public final class DOMKeyInfoFactory
extends KeyInfoFactory

DOM-based implementation of KeyInfoFactory.

Author:
Sean Mullan

Constructor Summary
DOMKeyInfoFactory()
           
 
Method Summary
 URIDereferencer getURIDereferencer()
           
 boolean isFeatureSupported(String feature)
           
 KeyInfo newKeyInfo(List content)
           
 KeyInfo newKeyInfo(List content, String id)
           
 KeyName newKeyName(String name)
           
 KeyValue newKeyValue(PublicKey key)
           
 PGPData newPGPData(byte[] keyId)
           
 PGPData newPGPData(byte[] keyId, byte[] keyPacket, List other)
           
 PGPData newPGPData(byte[] keyPacket, List other)
           
 RetrievalMethod newRetrievalMethod(String uri)
           
 RetrievalMethod newRetrievalMethod(String uri, String type, List transforms)
           
 X509Data newX509Data(List content)
           
 X509IssuerSerial newX509IssuerSerial(String issuerName, BigInteger serialNumber)
           
 KeyInfo unmarshalKeyInfo(XMLStructure xmlStructure)
           
 
Methods inherited from class javax.xml.crypto.dsig.keyinfo.KeyInfoFactory
getInstance, getInstance, getInstance, getInstance, getMechanismType, getProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMKeyInfoFactory

public DOMKeyInfoFactory()
Method Detail

newKeyInfo

public KeyInfo newKeyInfo(List content)
Specified by:
newKeyInfo in class KeyInfoFactory

newKeyInfo

public KeyInfo newKeyInfo(List content,
                          String id)
Specified by:
newKeyInfo in class KeyInfoFactory

newKeyName

public KeyName newKeyName(String name)
Specified by:
newKeyName in class KeyInfoFactory

newKeyValue

public KeyValue newKeyValue(PublicKey key)
                     throws KeyException
Specified by:
newKeyValue in class KeyInfoFactory
Throws:
KeyException

newPGPData

public PGPData newPGPData(byte[] keyId)
Specified by:
newPGPData in class KeyInfoFactory

newPGPData

public PGPData newPGPData(byte[] keyId,
                          byte[] keyPacket,
                          List other)
Specified by:
newPGPData in class KeyInfoFactory

newPGPData

public PGPData newPGPData(byte[] keyPacket,
                          List other)
Specified by:
newPGPData in class KeyInfoFactory

newRetrievalMethod

public RetrievalMethod newRetrievalMethod(String uri)
Specified by:
newRetrievalMethod in class KeyInfoFactory

newRetrievalMethod

public RetrievalMethod newRetrievalMethod(String uri,
                                          String type,
                                          List transforms)
Specified by:
newRetrievalMethod in class KeyInfoFactory

newX509Data

public X509Data newX509Data(List content)
Specified by:
newX509Data in class KeyInfoFactory

newX509IssuerSerial

public X509IssuerSerial newX509IssuerSerial(String issuerName,
                                            BigInteger serialNumber)
Specified by:
newX509IssuerSerial in class KeyInfoFactory

isFeatureSupported

public boolean isFeatureSupported(String feature)
Specified by:
isFeatureSupported in class KeyInfoFactory

getURIDereferencer

public URIDereferencer getURIDereferencer()
Specified by:
getURIDereferencer in class KeyInfoFactory

unmarshalKeyInfo

public KeyInfo unmarshalKeyInfo(XMLStructure xmlStructure)
                         throws MarshalException
Specified by:
unmarshalKeyInfo in class KeyInfoFactory
Throws:
MarshalException


Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.