Class ProtectionToken

java.lang.Object
org.apache.ws.secpolicy.model.AbstractSecurityAssertion
org.apache.ws.secpolicy.model.ProtectionToken
All Implemented Interfaces:
org.apache.neethi.Assertion, org.apache.neethi.PolicyComponent, TokenWrapper

public class ProtectionToken extends AbstractSecurityAssertion implements TokenWrapper
  • Constructor Details

    • ProtectionToken

      public ProtectionToken(int version)
  • Method Details

    • getProtectionToken

      public Token getProtectionToken()
      Returns:
      Returns the protectionToken.
    • setProtectionToken

      public void setProtectionToken(Token protectionToken)
      Parameters:
      protectionToken - The protectionToken to set.
    • setToken

      public void setToken(Token tok)
      Specified by:
      setToken in interface TokenWrapper
    • getName

      public QName getName()
      Specified by:
      getName in interface org.apache.neethi.Assertion
    • normalize

      public org.apache.neethi.PolicyComponent normalize()
      Specified by:
      normalize in interface org.apache.neethi.Assertion
      Overrides:
      normalize in class AbstractSecurityAssertion
    • serialize

      public void serialize(XMLStreamWriter writer) throws XMLStreamException
      Specified by:
      serialize in interface org.apache.neethi.Assertion
      Specified by:
      serialize in interface org.apache.neethi.PolicyComponent
      Throws:
      XMLStreamException