com.microsoft.alm.storage.posix.GnomeKeyringBackedTokenStore Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of auth-secure-storage Show documentation
Show all versions of auth-secure-storage Show documentation
Provides different kind of secure storage for storing secrets generated by the Authentication Library
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See License.txt in the project root.
package com.microsoft.alm.storage.posix;
import com.microsoft.alm.secret.Token;
import com.microsoft.alm.secret.TokenType;
import com.microsoft.alm.storage.posix.internal.GnomeKeyringBackedSecureStore;
public class GnomeKeyringBackedTokenStore extends GnomeKeyringBackedSecureStore {
@Override
protected Token deserialize(final String secret) {
return new Token(secret, TokenType.Personal);
}
@Override
protected String serialize(final Token secret) {
return secret.Value;
}
@Override
protected String getType() {
return "PersonalAccessToken";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy