Class ApiTokenStore.HashedToken

    • Method Detail

      • buildNew

        @NonNull
        public static ApiTokenStore.HashedToken buildNew​(@NonNull
                                                         String name,
                                                         @NonNull
                                                         jenkins.security.apitoken.ApiTokenStore.HashValue value)
      • buildNewFromLegacy

        @NonNull
        public static ApiTokenStore.HashedToken buildNewFromLegacy​(@NonNull
                                                                   jenkins.security.apitoken.ApiTokenStore.HashValue value,
                                                                   boolean migrationFromExistingLegacy)
      • rename

        public void rename​(String newName)
      • match

        public boolean match​(byte[] hashedBytes)
      • getName

        public String getName()
      • getCreationDate

        public Date getCreationDate()
      • getNumDaysCreation

        public long getNumDaysCreation()
        Relevant only if the lastUseDate is not null
      • getUuid

        public String getUuid()
      • isLegacy

        public boolean isLegacy()
      • setName

        public void setName​(String name)