Class RahasData

java.lang.Object
org.apache.rahas.RahasData

public class RahasData extends Object
Common data items on WS-Trust request messages
  • Constructor Details

    • RahasData

      public RahasData(org.apache.axis2.context.MessageContext inMessageContext) throws TrustException
      Create a new RahasData instance and populate it with the information from the request.
      Throws:
      TrustException - RequestSecurityToken element is invalid.
    • RahasData

      public RahasData()
  • Method Details

    • getAppliesToAddress

      public String getAppliesToAddress()
      Returns:
      Returns the appliesToAddress.
    • getClientCert

      public X509Certificate getClientCert()
      Returns:
      Returns the clientCert.
    • getComputedKeyAlgo

      public String getComputedKeyAlgo()
      Returns:
      Returns the computedKeyAlgo.
    • getEphmeralKey

      public byte[] getEphmeralKey()
      Returns:
      Returns the ephmeralKey.
    • getInMessageContext

      public org.apache.axis2.context.MessageContext getInMessageContext()
      Returns:
      Returns the inMessageContext.
    • setInMessageContext

      public void setInMessageContext(org.apache.axis2.context.MessageContext context)
      Sets the given message context as in message context.
      Parameters:
      context - The message context.
    • getKeysize

      @Deprecated public int getKeysize()
      Deprecated.
      As of Rampart 1.7. Use getKeySize.
      Returns:
      Returns the keysize.
    • getKeySize

      public int getKeySize()
      Returns:
      Returns the keySize.
    • setKeySize

      public void setKeySize(int size)
      Sets the key size.
      Parameters:
      size - Size of the key.
    • getKeyType

      public String getKeyType()
      // TODO changes this keytype to an enumeration
      Returns:
      Returns the keyType.
    • getPrincipal

      public Principal getPrincipal()
      Returns:
      Returns the principal.
    • getRequestEntropy

      public byte[] getRequestEntropy()
      Returns:
      Returns the requestEntropy.
    • getRequestType

      public String getRequestType()
      Returns:
      Returns the requestType.
    • getResponseEntropy

      public byte[] getResponseEntropy()
      Returns:
      Returns the responseEntropy.
    • getRstElement

      public org.apache.axiom.om.OMElement getRstElement()
      Returns:
      Returns the rstElement.
    • getTokenType

      public String getTokenType()
      Returns:
      Returns the tokenType.
    • getVersion

      public int getVersion()
      Returns:
      Returns the version.
    • getAddressingNs

      public String getAddressingNs()
      Returns:
      Returns the addressingNs.
    • getWstNs

      public String getWstNs()
      Returns:
      Returns the wstNs.
    • getSoapNs

      public String getSoapNs()
      Returns:
      Returns the soapNs.
    • getTokenId

      public String getTokenId()
      Returns:
      Returns the tokenId.
    • setResponseEntropy

      public void setResponseEntropy(byte[] responseEntropy)
      Parameters:
      responseEntropy - The responseEntropy to set.
    • setEphmeralKey

      public void setEphmeralKey(byte[] ephmeralKey)
      Parameters:
      ephmeralKey - The ephmeralKey to set.
    • getClaimDialect

      public String getClaimDialect()
    • getClaimElem

      public org.apache.axiom.om.OMElement getClaimElem()
    • getAppliesToEpr

      public org.apache.axiom.om.OMElement getAppliesToEpr()
    • getAssertionCreatedDate

      public Date getAssertionCreatedDate()
    • setAssertionCreatedDate

      public void setAssertionCreatedDate(Date assertionCreatedDate)
    • getAssertionExpiringDate

      public Date getAssertionExpiringDate()
    • setAssertionExpiringDate

      public void setAssertionExpiringDate(Date assertionExpiringDate)