Class CmsPersistentLoginTokenHandler.Token

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String SEPARATOR
      Separator to use for the encoded token string.
    • Constructor Summary

      Constructors 
      Constructor Description
      Token​(java.lang.String token)
      Creates a new token object from the encoded representation.
      Token​(java.lang.String name, java.lang.String key)
      Creates a token object from the given name and key.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String encode()
      Gets the encoded token string representation.
      java.lang.String getAdditionalInfoKey()
      Gets the additional info key to use for this token.
      java.lang.String getKey()
      Gets the key for this token.
      java.lang.String getName()
      Gets the user name for this token.
      boolean isValid()
      Checks if this token is valid.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Token

        public Token​(java.lang.String token)
        Creates a new token object from the encoded representation.

        Parameters:
        token - a string containing the token data
      • Token

        public Token​(java.lang.String name,
                     java.lang.String key)
        Creates a token object from the given name and key.

        Parameters:
        name - the name
        key - the key
    • Method Detail

      • encode

        public java.lang.String encode()
        Gets the encoded token string representation.

        Returns:
        the token string
      • getAdditionalInfoKey

        public java.lang.String getAdditionalInfoKey()
        Gets the additional info key to use for this token.

        Returns:
        the additional info key
      • getKey

        public java.lang.String getKey()
        Gets the key for this token.

        Returns:
        the key
      • getName

        public java.lang.String getName()
        Gets the user name for this token.

        Returns:
        the user name
      • isValid

        public boolean isValid()
        Checks if this token is valid.

        Returns:
        true if this token is valid