Class CipherVersionImpl

java.lang.Object
org.refcodes.forwardsecrecy.CipherVersionImpl
All Implemented Interfaces:
Serializable, Comparable<CipherVersion>, CipherVersion, org.refcodes.mixin.UniversalIdAccessor

public class CipherVersionImpl extends Object implements CipherVersion, Serializable
The Class CipherVersionImpl.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.refcodes.mixin.UniversalIdAccessor

    org.refcodes.mixin.UniversalIdAccessor.UniversalIdBuilder<B extends org.refcodes.mixin.UniversalIdAccessor.UniversalIdBuilder<B>>, org.refcodes.mixin.UniversalIdAccessor.UniversalIdMutator, org.refcodes.mixin.UniversalIdAccessor.UniversalIdProperty
  • Constructor Summary

    Constructors
    Constructor
    Description
    CipherVersionImpl(String aCipherUid, String aCipher)
    Constructs the data structure with the required attributes.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    compareTo(CipherVersion aCipherVersion)
    boolean
    Returns the cipher attribute.
    int

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CipherVersionImpl

      public CipherVersionImpl(String aCipherUid, String aCipher)
      Constructs the data structure with the required attributes.
      Parameters:
      aCipherUid - The UID identifying the cipher.
      aCipher - The cipher related to the given UID
  • Method Details

    • getUniversalId

      public String getUniversalId()
      Specified by:
      getUniversalId in interface org.refcodes.mixin.UniversalIdAccessor
    • getCipher

      public String getCipher()
      Returns the cipher attribute.
      Specified by:
      getCipher in interface CipherVersion
      Returns:
      The actual cipher.
    • compareTo

      public int compareTo(CipherVersion aCipherVersion)
      Specified by:
      compareTo in interface Comparable<CipherVersion>
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object