Test Failed
Push — master ( ae929a...e281c0 )
by Misagh
48:13 queued 26:17
created

org.apereo.cas.consent.AttributeReleaseConsentCipherExecutor   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
dl 0
loc 21
c 1
b 1
f 0
rs 10
wmc 4

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
getEncryptionKeySetting 0 3 ?
A getEncryptionKeySetting() 0 3 1
getSigningKeySetting 0 3 ?
A AttributeReleaseConsentCipherExecutor(String,String,String) 0 4 1
A getSigningKeySetting() 0 3 1
1
package org.apereo.cas.consent;
2
3
import org.apereo.cas.util.cipher.BaseStringCipherExecutor;
4
5
/**
6
 * This is {@link AttributeReleaseConsentCipherExecutor}.
7
 *
8
 * @author Misagh Moayyed
9
 * @since 5.2.0
10
 */
11
public class AttributeReleaseConsentCipherExecutor extends BaseStringCipherExecutor {
12
13
    public AttributeReleaseConsentCipherExecutor(final String secretKeyEncryption,
14
                                                 final String secretKeySigning,
15
                                                 final String alg) {
16
        super(secretKeyEncryption, secretKeySigning, alg);
17
    }
18
19
    @Override
20
    protected String getEncryptionKeySetting() {
21
        return "cas.consent.crypto.encryption.key";
22
    }
23
24
    @Override
25
    protected String getSigningKeySetting() {
26
        return "cas.consent.crypto.signing.key";
27
    }
28
29
    @Override
30
    public String getName() {
31
        return "Attribute Consent";
32
    }
33
}
34