Class AbstractOperation

    • Constructor Detail

      • AbstractOperation

        public AbstractOperation()
    • Method Detail

      • isAllowCustomContent

        public boolean isAllowCustomContent()
      • setAllowCustomContent

        public void setAllowCustomContent​(boolean allowCustomContent)
      • setTokenWrapper

        public void setTokenWrapper​(TokenWrapper tokenWrapper)
      • isReturnReferences

        public boolean isReturnReferences()
      • setReturnReferences

        public void setReturnReferences​(boolean returnReferences)
      • getTokenStore

        public TokenStore getTokenStore()
      • setTokenStore

        public void setTokenStore​(TokenStore tokenStore)
      • setEncryptIssuedToken

        public void setEncryptIssuedToken​(boolean encryptIssuedToken)
      • setTokenProviders

        public void setTokenProviders​(List<TokenProvider> tokenProviders)
      • setTokenValidators

        public void setTokenValidators​(List<TokenValidator> tokenValidators)
      • setClaimsManager

        public void setClaimsManager​(ClaimsManager claimsManager)
      • setIncludeLifetimeElement

        public void setIncludeLifetimeElement​(boolean value)
      • isIncludeLifetimeElement

        public boolean isIncludeLifetimeElement()
      • createRequestedReference

        protected static RequestedReferenceType createRequestedReference​(TokenReference tokenReference,
                                                                         boolean attached)
        Create a RequestedReferenceType object using a TokenReference object
      • createRequestedReference

        protected static RequestedReferenceType createRequestedReference​(String tokenId,
                                                                         String tokenType,
                                                                         boolean attached)
        Create a RequestedReferenceType object using a token id and tokenType
      • createLifetime

        protected static LifetimeType createLifetime​(Instant tokenCreated,
                                                     Instant tokenExpires)
        Create a LifetimeType object given a created + expires Dates
      • encryptSecret

        protected Element encryptSecret​(byte[] secret,
                                        EncryptionProperties encryptionProperties,
                                        KeyRequirements keyRequirements)
                                 throws org.apache.wss4j.common.ext.WSSecurityException
        Encrypt a secret using the given arguments producing a DOM EncryptedKey element
        Throws:
        org.apache.wss4j.common.ext.WSSecurityException
      • extractAddressFromAppliesTo

        protected String extractAddressFromAppliesTo​(Element appliesTo)
        Extract an address from an AppliesTo DOM element
      • setEventListener

        public void setEventListener​(STSEventListener eventListener)
      • findInboundSecurityToken

        protected static org.apache.xml.security.stax.securityToken.SecurityToken findInboundSecurityToken​(org.apache.xml.security.stax.securityEvent.SecurityEventConstants.Event event,
                                                                                                           Map<String,​Object> messageContext)
                                                                                                    throws org.apache.xml.security.exceptions.XMLSecurityException
        Throws:
        org.apache.xml.security.exceptions.XMLSecurityException