Oracle Security Developer Tools Liberty 1.1 Java API Reference
10g (10.1.4.0.1)

B28179-01


oracle.security.xmlsec.liberty.v11.ac
Class PrivateKeyProtection

java.lang.Object
  extended byoracle.security.xmlsec.util.XMLNode
      extended byoracle.security.xmlsec.util.XMLElement
          extended byoracle.security.xmlsec.liberty.v11.ac.ACElement
              extended byoracle.security.xmlsec.liberty.v11.ac.PrivateKeyProtection


public class PrivateKeyProtection
extends ACElement

Class representing the PrivateKeyProtection element in the Liberty authentication context namespace (http://projectliberty.org/schemas/authctx/2002/05).

Since:
1.0

Field Summary

 

Fields inherited from class oracle.security.xmlsec.liberty.v11.ac.ACElement
authenticationContextClass

 

Fields inherited from class oracle.security.xmlsec.util.XMLNode
node, systemId

 

Constructor Summary
PrivateKeyProtection(org.w3c.dom.Document owner, AuthenticationContextStatement acs)
          Creates a new PrivateKeyProtection instance in the given document with the given authentication context.
PrivateKeyProtection(org.w3c.dom.Element element, AuthenticationContextStatement acs)
          Creates a new PrivateKeyProtection object that wraps the given Element object.
PrivateKeyProtection(org.w3c.dom.Element element, java.lang.String systemId, AuthenticationContextStatement acs)
          Creates a new PrivateKeyProtection object that wraps the given Element object.

 

Method Summary
 KeyActivation getKeyActivation()
          Returns the KeyActivation element for this PrivateKeyProtection, or null if none has been set.
 KeyStorage getKeyStorage()
          Returns the KeyStorage element for this PrivateKeyProtection, or null if none has been set.
 void setKeyActivation(KeyActivation ka)
          Sets the KeyActivation element for this PrivateKeyProtection element, replacing any existing KeyActivation element.
 void setKeyStorage(KeyStorage ks)
          Sets the KeyStorage element for this PrivateKeyProtection element, replacing any existing KeyStorage element.

 

Methods inherited from class oracle.security.xmlsec.liberty.v11.ac.ACElement
getAuthenticationContextClass, setAuthenticationContextClass

 

Methods inherited from class oracle.security.xmlsec.util.XMLElement
addNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefix

 

Methods inherited from class oracle.security.xmlsec.util.XMLNode
appendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXML

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

PrivateKeyProtection

public PrivateKeyProtection(org.w3c.dom.Element element,
                            AuthenticationContextStatement acs)
Creates a new PrivateKeyProtection object that wraps the given Element object.
Parameters:
element - The underlying org.w3c.dom.Element object.
acs - The authentication context for the element.

PrivateKeyProtection

public PrivateKeyProtection(org.w3c.dom.Element element,
                            java.lang.String systemId,
                            AuthenticationContextStatement acs)
Creates a new PrivateKeyProtection object that wraps the given Element object.
Parameters:
element - The underlying org.w3c.dom.Element object.
systemId - The URI string system ID for the PrivateKeyProtection.
acs - The authentication context for the element.

PrivateKeyProtection

public PrivateKeyProtection(org.w3c.dom.Document owner,
                            AuthenticationContextStatement acs)
Creates a new PrivateKeyProtection instance in the given document with the given authentication context.
Parameters:
owner - The owner document for this new element.
acs - The authentication context for this new element.

Method Detail

setKeyActivation

public void setKeyActivation(KeyActivation ka)
                      throws AuthenticationContextException
Sets the KeyActivation element for this PrivateKeyProtection element, replacing any existing KeyActivation element.
Parameters:
ka - The KeyActivation element.
Throws:
AuthenticationContextException - If the KeyActivation element is not valid for this authentication context class.

getKeyActivation

public KeyActivation getKeyActivation()
Returns the KeyActivation element for this PrivateKeyProtection, or null if none has been set.

setKeyStorage

public void setKeyStorage(KeyStorage ks)
                   throws AuthenticationContextException
Sets the KeyStorage element for this PrivateKeyProtection element, replacing any existing KeyStorage element.
Parameters:
ks - The KeyStorage element.
Throws:
AuthenticationContextException - If the PrivateKeyProtection element is not valid for this authentication context class.

getKeyStorage

public KeyStorage getKeyStorage()
Returns the KeyStorage element for this PrivateKeyProtection, or null if none has been set.

Oracle Security Developer Tools Liberty 1.1 Java API Reference
10g (10.1.4.0.1)

B28179-01


Copyright © 2005, 2006 , Oracle. All rights reserved.