Class FlexibleNARKey

java.lang.Object
com.nt.udc.flexibleAggregator.table.FlexibleNARKey
All Implemented Interfaces:
Serializable

public class FlexibleNARKey extends Object implements Serializable
This class extends the NARKey to have a boolean indicating if the key is active. Due to the usage of the NARKey, this actually just contains an instance of the NARKey which we call as needed.
See Also:
  • Constructor Details

    • FlexibleNARKey

      public FlexibleNARKey(NARKey sourceKey)
      These are the constructors from the base NARKey. The key is always active when it is first created.
  • Method Details

    • isKeyActive

      public boolean isKeyActive()
      Indicates if the key is currently set to active
    • setKeyInactive

      public void setKeyInactive()
      Makes the key inactive.
    • setKeyActive

      public void setKeyActive()
      Makes the key active.
    • getNARKey

      public NARKey getNARKey()
      This will return the internal NARKey.
    • toBytes

      public byte[] toBytes()
      These are calls that just get passed on to the NARKey.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object