Class CryptoBinaryImpl

    • Field Detail

      • log

        private final org.slf4j.Logger log
        Class logger.
      • bigIntValue

        private BigInteger bigIntValue
        The cached BigInteger representation of the element's base64-encoded value.
    • Constructor Detail

      • CryptoBinaryImpl

        protected CryptoBinaryImpl​(String namespaceURI,
                                   String elementLocalName,
                                   String namespacePrefix)
        Constructor.
        Parameters:
        namespaceURI - the namespace the element is in
        elementLocalName - the local name of the XML element this Object represents
        namespacePrefix - the prefix for the given namespace
    • Method Detail

      • getValueBigInt

        public BigInteger getValueBigInt()
        Convenience method to get the value of the element as a BigInteger type.
        Specified by:
        getValueBigInt in interface CryptoBinary
        Returns:
        the BigInteger representation of the element's content
      • setValueBigInt

        public void setValueBigInt​(BigInteger bigInt)
                            throws EncodingException
        Convenience method to set the value of the element as a BigInteger type.
        Specified by:
        setValueBigInt in interface CryptoBinary
        Parameters:
        bigInt - the new BigInteger representation of the element's content
        Throws:
        EncodingException - if the byte value of the BigInteger can not be base64 encoded.