Class CryptoBinaryImpl

All Implemented Interfaces:
XSBase64Binary, XMLObject, CryptoBinary
Direct Known Subclasses:
ECPointTypeImpl, ExponentImpl, GeneratorImpl, GImpl, JImpl, ModulusImpl, PgenCounterImpl, PgenCounterImpl, PImpl, PImpl, PublicImpl, QImpl, QImpl, SeedImpl, SeedImpl, YImpl

public class CryptoBinaryImpl extends XSBase64BinaryImpl implements CryptoBinary
Concrete implementation of CryptoBinary.
  • Field Details

    • 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 Details

    • 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 Details

    • 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.
    • setValue

      public void setValue(String newValue)
      Sets the base64-encoded binary value.
      Specified by:
      setValue in interface XSBase64Binary
      Overrides:
      setValue in class XSBase64BinaryImpl
      Parameters:
      newValue - the string value