View Javadoc
1   package org.kuali.common.util.encrypt;
2   
3   import static org.kuali.common.util.base.Precondition.checkNotBlank;
4   import static org.kuali.common.util.base.Precondition.checkNotNull;
5   
6   
7   public final class EncryptionContext {
8   
9   	public EncryptionContext(String password, EncryptionStrength strength) {
10  		this.password = checkNotBlank(password, "password");
11  		this.strength = checkNotNull(strength, "strength");
12  	}
13  
14  	private final String password;
15  	private final EncryptionStrength strength;
16  
17  	public String getPassword() {
18  		return password;
19  	}
20  
21  	public EncryptionStrength getStrength() {
22  		return strength;
23  	}
24  
25  }