@ Nonnull public static AccessToken createAccessTokenValidFromNow ( @ Nullable final String sTokenString ) { // Length 66 so that the Base64 encoding does not add the "==" signs // Length must be dividable by 3 final String sRealTokenString = StringHelper . hasText ( sTokenString ) ? sTokenString : createNewTokenString ( 66 ) ; return new AccessToken ( sRealTokenString , PDTFactory . getCurrentLocalDateTime ( ) , null , new RevocationStatus ( ) ) ; }
Create a new access token that is valid from now on for an infinite amount of time .