Class CommunicationAccessToken


  • public final class CommunicationAccessToken
    extends java.lang.Object
    Represents an immutable communication access token with a token string and an expiration time.
    • Constructor Summary

      Constructors 
      Constructor Description
      CommunicationAccessToken​(java.lang.String token, org.threeten.bp.OffsetDateTime expiresAt)
      Creates a communication access token instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.threeten.bp.OffsetDateTime getExpiresAt()  
      java.lang.String getToken()  
      boolean isExpired()  
      • Methods inherited from class java.lang.Object

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

      • CommunicationAccessToken

        public CommunicationAccessToken​(java.lang.String token,
                                        org.threeten.bp.OffsetDateTime expiresAt)
        Creates a communication access token instance.
        Parameters:
        token - The token string.
        expiresAt - The expiration time.
    • Method Detail

      • getToken

        public java.lang.String getToken()
        Returns:
        The token string.
      • getExpiresAt

        public org.threeten.bp.OffsetDateTime getExpiresAt()
        Returns:
        The time when the token expires, in UTC.
      • isExpired

        public boolean isExpired()
        Returns:
        If the token has expired.