com.microsoft.alm.storage.windows.CredManagerBackedCredentialStore 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.windows;
import com.microsoft.alm.secret.Credential;
import com.microsoft.alm.storage.windows.internal.CredManagerBackedSecureStore;
public class CredManagerBackedCredentialStore extends CredManagerBackedSecureStore {
@Override
protected Credential create(final String username, final String secret) {
return new Credential(username, secret) ;
}
@Override
protected String getUsername(final Credential cred) {
return cred.Username;
}
@Override
protected String getCredentialBlob(final Credential cred) {
return cred.Password;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy