001package com.box.sdk;
002
003/**
004 * Contains the encryption preferences for JWT assertion.
005 */
006
007public class JWTEncryptionPreferences {
008    private String publicKeyID;
009    private String privateKey;
010    private String privateKeyPassword;
011    private EncryptionAlgorithm encryptionAlgorithm;
012
013    /**
014     * Returns the ID for public key for validating the JWT signature.
015     * @return the publicKeyID.
016     */
017    public String getPublicKeyID() {
018        return this.publicKeyID;
019    }
020
021    /**
022     * Sets the ID for public key for validating the JWT signature.
023     * @param publicKeyID the publicKeyID to set.
024     */
025    public void setPublicKeyID(String publicKeyID) {
026        this.publicKeyID = publicKeyID;
027    }
028
029    /**
030     * Returns the private key for generating the JWT signature.
031     * @return the privateKey.
032     */
033    public String getPrivateKey() {
034        return this.privateKey;
035    }
036
037    /**
038     * Sets the private key for generating the JWT signature.
039     * @param privateKey the privateKey to set.
040     */
041    public void setPrivateKey(String privateKey) {
042        this.privateKey = privateKey;
043    }
044
045    /**
046     * Returns the password for the private key.
047     * @return the privateKeyPassword.
048     */
049    public String getPrivateKeyPassword() {
050        return this.privateKeyPassword;
051    }
052
053    /**
054     * Sets the password for the private key.
055     * @param privateKeyPassword the privateKeyPassword to set.
056     */
057    public void setPrivateKeyPassword(String privateKeyPassword) {
058        this.privateKeyPassword = privateKeyPassword;
059    }
060
061    /**
062     * Returns the type of encryption algorithm for JWT.
063     * @return the encryptionAlgorithm.
064     */
065    public EncryptionAlgorithm getEncryptionAlgorithm() {
066        return this.encryptionAlgorithm;
067    }
068
069    /**
070     * Sets the type of encryption algorithm for JWT.
071     * @param encryptionAlgorithm the encryptionAlgorithm to set.
072     */
073    public void setEncryptionAlgorithm(EncryptionAlgorithm encryptionAlgorithm) {
074        this.encryptionAlgorithm = encryptionAlgorithm;
075    }
076}