Examples of SecretData


Examples of io.fathom.cloud.protobuf.CloudCommons.SecretData

            //
            // if (password != null) {
            // sb.setPassword(password);
            // }

            SecretData secretData = computeSecrets.encrypt(sb.build());
            b.setSecretData(secretData);
        }

        if (parent != null) {
            b.setParent(parent.getId());
View Full Code Here

Examples of io.fathom.cloud.protobuf.CloudCommons.SecretData

    //
    // return user;
    // }

    private UserWithSecret checkSecret(UserData user, SecretToken secretToken) {
        SecretData secretData = user.getSecretData();

        if (secretData.hasEncryptedWith() && secretData.getEncryptedWith() != EncryptedWith.SECRET_KEY) {
            throw new IllegalStateException();
        }

        UserSecretData userSecretData;
        try {
View Full Code Here

Examples of io.fathom.cloud.protobuf.CloudCommons.SecretData

        AttachmentData existing = store.find(appKey);
        if (existing == null) {
            return null;
        }

        SecretData secretData = existing.getData();

        try {
            byte[] plaintext = appSecrets.decryptUserSecret(user, secretData);
            return plaintext;
        } catch (KeyczarException e) {
View Full Code Here

Examples of io.fathom.cloud.protobuf.CloudCommons.SecretData

        AttachmentData existing = store.find(appKey);
        if (existing == null) {
            return null;
        }

        SecretData secretData = existing.getData();

        try {
            byte[] plaintext = appSecrets.decryptProjectSecret(project, secretData);
            return plaintext;
        } catch (KeyczarException e) {
View Full Code Here

Examples of io.fathom.cloud.protobuf.CloudCommons.SecretData

    // long id = hasher.hash().asLong();
    // return Long.toHexString(id);
    // }

    protected ClientAppSecretData findClientAppSecretData(ClientAppData app, String appPassword) {
        SecretData secretData = app.getSecretData();

        SecretToken secretToken;
        try {
            secretToken = Secrets.getSecretFromPassword(app.getSecretStore(), appPassword);
        } catch (KeyczarException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.