org.globus.ogsa.impl.security.authentication
Class GSSEncryptedData

java.lang.Object
  extended byorg.apache.xml.security.utils.ElementProxy
      extended byorg.apache.xml.security.utils.EncryptionElementProxy
          extended byorg.apache.xml.security.encryption.EncryptedData
              extended byorg.globus.ogsa.impl.security.authentication.GSSEncryptedData
All Implemented Interfaces:
org.apache.xml.security.encryption.type.EncryptedType

public class GSSEncryptedData
extends org.apache.xml.security.encryption.EncryptedData


Field Summary
 
Fields inherited from class org.apache.xml.security.utils.ElementProxy
_baseURI, _constructionElement, _doc, _state, MODE_CREATE, MODE_DECRYPT, MODE_ENCRYPT, MODE_PROCESS, MODE_SIGN, MODE_UNKNOWN, MODE_VERIFY
 
Constructor Summary
GSSEncryptedData(org.w3c.dom.Document doc, org.apache.xml.security.algorithms.encryption.EncryptionMethod encryptionMethod, org.apache.xml.security.keys.KeyInfo keyInfo, org.apache.xml.security.encryption.CipherData cipherData, org.apache.xml.security.encryption.EncryptionProperties encryptionProperties, java.lang.String Id, java.lang.String Type)
          Constructor GSSEncryptedData
GSSEncryptedData(org.w3c.dom.Document doc, java.lang.String encryptionMethod, org.apache.xml.security.algorithms.encryption.params.EncryptionMethodParams encryptionMethodParams, org.apache.xml.security.keys.KeyInfo keyInfo, org.apache.xml.security.encryption.CipherData cipherData, org.apache.xml.security.encryption.EncryptionProperties encryptionProperties, java.lang.String Id, java.lang.String Type)
          Constructor GSSEncryptedData
GSSEncryptedData(org.w3c.dom.Document doc, java.lang.String encryptionMethod, org.apache.xml.security.algorithms.encryption.params.EncryptionMethodParams encryptionMethodParams, org.apache.xml.security.keys.KeyInfo keyInfo, org.apache.xml.security.encryption.EncryptionProperties encryptionProperties, java.lang.String Id)
          Constructor GSSEncryptedData
GSSEncryptedData(org.w3c.dom.Element element, java.lang.String BaseURI)
          Constructor GSSEncryptedData
 
Method Summary
 void decryptAndReplace(org.ietf.jgss.GSSContext context)
          Method decryptAndReplace
 void encryptContentAndReplace(org.w3c.dom.Node firstPlaintextNode, int length, org.ietf.jgss.GSSContext context)
          Encrypts some child Nodes of a given Element.
 void encryptElementAndReplace(org.w3c.dom.Element plaintextElement, org.ietf.jgss.GSSContext context)
          Method encryptAndReplace
 java.lang.String getKeyInfoContextId()
           
 
Methods inherited from class org.apache.xml.security.encryption.EncryptedData
createSecretKeyFromBytes, decryptAndReplace, encryptContentAndReplace, encryptContentAndReplace, encryptElementAndReplace, getBaseLocalName, getCipherData, getEncryptionMethod, getEncryptionProperties, getId, getKeyInfo, getMediaTypeOfType, getType, getTypeIsContent, getTypeIsElement, getTypeIsMediaType, main, min, min, replace, replace, replace, setId, setType
 
Methods inherited from class org.apache.xml.security.utils.EncryptionElementProxy
getBaseNamespace
 
Methods inherited from class org.apache.xml.security.utils.ElementProxy
addBase64Element, addBase64Text, addBigIntegerElement, addText, addTextElement, createElementForFamily, getBaseURI, getBigIntegerFromChildElement, getBytesFromChildElement, getBytesFromTextChild, getChildElementLocalName, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getTextFromChildElement, getTextFromTextChild, guaranteeThatElementInCorrectSpace, length, setDefaultPrefix, setElement, setXPathNamespaceContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GSSEncryptedData

public GSSEncryptedData(org.w3c.dom.Document doc,
                        org.apache.xml.security.algorithms.encryption.EncryptionMethod encryptionMethod,
                        org.apache.xml.security.keys.KeyInfo keyInfo,
                        org.apache.xml.security.encryption.CipherData cipherData,
                        org.apache.xml.security.encryption.EncryptionProperties encryptionProperties,
                        java.lang.String Id,
                        java.lang.String Type)
                 throws org.apache.xml.security.exceptions.XMLSecurityException
Constructor GSSEncryptedData

Parameters:
doc -
encryptionMethod -
keyInfo -
cipherData -
encryptionProperties -
Id -
Type -
Throws:
org.apache.xml.security.exceptions.XMLSecurityException

GSSEncryptedData

public GSSEncryptedData(org.w3c.dom.Document doc,
                        java.lang.String encryptionMethod,
                        org.apache.xml.security.algorithms.encryption.params.EncryptionMethodParams encryptionMethodParams,
                        org.apache.xml.security.keys.KeyInfo keyInfo,
                        org.apache.xml.security.encryption.EncryptionProperties encryptionProperties,
                        java.lang.String Id)
                 throws org.apache.xml.security.exceptions.XMLSecurityException
Constructor GSSEncryptedData

Parameters:
doc -
encryptionMethod -
encryptionMethodParams -
keyInfo -
encryptionProperties -
Id -
Throws:
org.apache.xml.security.exceptions.XMLSecurityException

GSSEncryptedData

public GSSEncryptedData(org.w3c.dom.Document doc,
                        java.lang.String encryptionMethod,
                        org.apache.xml.security.algorithms.encryption.params.EncryptionMethodParams encryptionMethodParams,
                        org.apache.xml.security.keys.KeyInfo keyInfo,
                        org.apache.xml.security.encryption.CipherData cipherData,
                        org.apache.xml.security.encryption.EncryptionProperties encryptionProperties,
                        java.lang.String Id,
                        java.lang.String Type)
                 throws org.apache.xml.security.exceptions.XMLSecurityException
Constructor GSSEncryptedData

Parameters:
doc -
encryptionMethod -
encryptionMethodParams -
keyInfo -
cipherData -
encryptionProperties -
Id -
Type -
Throws:
org.apache.xml.security.exceptions.XMLSecurityException

GSSEncryptedData

public GSSEncryptedData(org.w3c.dom.Element element,
                        java.lang.String BaseURI)
                 throws org.apache.xml.security.exceptions.XMLSecurityException
Constructor GSSEncryptedData

Parameters:
element -
BaseURI -
Throws:
org.apache.xml.security.exceptions.XMLSecurityException
Method Detail

encryptElementAndReplace

public void encryptElementAndReplace(org.w3c.dom.Element plaintextElement,
                                     org.ietf.jgss.GSSContext context)
                              throws org.apache.xml.security.exceptions.XMLSecurityException
Method encryptAndReplace

Parameters:
plaintextElement -
context -
Throws:
org.apache.xml.security.exceptions.XMLSecurityException

encryptContentAndReplace

public void encryptContentAndReplace(org.w3c.dom.Node firstPlaintextNode,
                                     int length,
                                     org.ietf.jgss.GSSContext context)
                              throws org.apache.xml.security.exceptions.XMLSecurityException
Encrypts some child Nodes of a given Element.

Parameters:
firstPlaintextNode - the first Node to be encrypted
length - the total number of Nodes to be encrypted (the firstPlaintextNode and (length-1) next siblings)
context - the context which is used to encrypt the data
Throws:
org.apache.xml.security.exceptions.XMLSecurityException

decryptAndReplace

public void decryptAndReplace(org.ietf.jgss.GSSContext context)
                       throws org.apache.xml.security.exceptions.XMLSecurityException
Method decryptAndReplace

Parameters:
context -
Throws:
org.apache.xml.security.exceptions.XMLSecurityException

getKeyInfoContextId

public java.lang.String getKeyInfoContextId()
                                     throws org.apache.xml.security.exceptions.XMLSecurityException
Throws:
org.apache.xml.security.exceptions.XMLSecurityException


Copyright ? 1999 University of Chicago and The University of Southern California. All Rights Reserved.