Class AbstractSAML2Artifact

    • Field Detail

      • endpointIndex

        private byte[] endpointIndex
        2 byte artifact endpoint index.
    • Constructor Detail

      • AbstractSAML2Artifact

        protected AbstractSAML2Artifact​(byte[] artifactType)
        Constructor.
        Parameters:
        artifactType - artifact type code
      • AbstractSAML2Artifact

        public AbstractSAML2Artifact​(byte[] artifactType,
                                     byte[] index)
        Constructor.
        Parameters:
        artifactType - artifact type code
        index - 2 byte endpoint index of the artifact
        Throws:
        IllegalArgumentException - thrown if the endpoint index, source ID, or message handle arrays are not of the right size
    • Method Detail

      • getEndpointIndex

        @Nonnull
        public byte[] getEndpointIndex()
        Gets the 2 byte endpoint index for this artifact.
        Specified by:
        getEndpointIndex in interface SAML2Artifact
        Returns:
        2 byte endpoint index for this artifact
      • setEndpointIndex

        public void setEndpointIndex​(byte[] newIndex)
        Sets the 2 byte endpoint index for this artifact.
        Parameters:
        newIndex - 2 byte endpoint index for this artifact
        Throws:
        IllegalArgumentException - thrown if the given index is not 2 bytes