Class VAPIDJWTParam.Builder

    • Method Detail

      • resourceURL

        public VAPIDJWTParam.Builder resourceURL​(URL resourceURL)

        Specifies a push resource URL from which the origin is extracted.

        Typically,

        Parameters:
        resourceURL - a push resource URL.
        Returns:
        this object.
        Throws:
        IllegalStateException - if the methods for specifying a resource URL are called more than once.
      • expiresAfter

        public VAPIDJWTParam.Builder expiresAfter​(int expiresAfter,
                                                  TimeUnit timeUnit)

        Specifies the time after which a JWT for VAPID expires.

        Typically, the specified expiration time is used as an "exp" (Expiry) claim.

        Parameters:
        expiresAfter - the time after which a JWT for VAPID expires.
        timeUnit - the unit of the given expiresAfter.
        Returns:
        this object.
        Throws:
        IllegalStateException - if the methods for specifying expiration time are called more than once.
      • expirationTime

        public VAPIDJWTParam.Builder expirationTime​(Instant expirationTime)

        Specifies the time at which a JWT for VAPID expires.

        Typically, the specified expiration time is used as an "exp" (Expiry) claim.

        Parameters:
        expirationTime - the time at which a JWT for VAPID expires.
        Returns:
        this object.
        Throws:
        IllegalStateException - if the methods for specifying expiration time are called more than once.
      • subject

        public VAPIDJWTParam.Builder subject​(String subject)

        Specifies a subject.

        Typically, the specified subject is used as a "sub" (Subject) claim.

        Parameters:
        subject - a subject.
        Returns:
        this object.