All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.alm.storage.windows.CredManagerBackedCredentialStore Maven / Gradle / Ivy

Go to download

Provides different kind of secure storage for storing secrets generated by the Authentication Library

There is a newer version: 0.6.4
Show newest version
// 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