1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.opensaml.xml.security.credential;
18
19 import java.security.PrivateKey;
20 import java.security.PublicKey;
21 import java.util.Collection;
22
23 import javax.crypto.SecretKey;
24
25
26
27
28 public abstract class AbstractCredential implements Credential {
29
30
31 protected String entityID;
32
33
34 protected UsageType usageType;
35
36
37 protected Collection<String> keyNames;
38
39
40 protected PublicKey publicKey;
41
42
43 protected SecretKey secretKey;
44
45
46 protected PrivateKey privateKey;
47
48
49 protected final CredentialContextSet credentialContextSet;
50
51
52
53
54 public AbstractCredential() {
55 credentialContextSet = new CredentialContextSet();
56 }
57
58
59 public String getEntityId() {
60 return entityID;
61 }
62
63
64 public UsageType getUsageType() {
65 return usageType;
66 }
67
68
69 public Collection<String> getKeyNames() {
70 return keyNames;
71 }
72
73
74 public PublicKey getPublicKey() {
75 return publicKey;
76 }
77
78
79 public SecretKey getSecretKey() {
80 return secretKey;
81 }
82
83
84 public PrivateKey getPrivateKey() {
85 return privateKey;
86 }
87
88
89 public CredentialContextSet getCredentalContextSet() {
90 return credentialContextSet;
91 }
92
93 }