src/java.security.jgss/share/classes/sun/security/krb5/internal/ccache/Credentials.java
equal
deleted
inserted
replaced
167 |
167 |
168 public PrincipalName getServicePrincipal() throws RealmException { |
168 public PrincipalName getServicePrincipal() throws RealmException { |
169 return sname; |
169 return sname; |
170 } |
170 } |
171 |
171 |
|
172 public Ticket getTicket() throws RealmException { |
|
173 return ticket; |
|
174 } |
|
175 |
|
176 public PrincipalName getServicePrincipal2() throws RealmException { |
|
177 return secondTicket == null ? null : secondTicket.sname; |
|
178 } |
|
179 |
|
180 public PrincipalName getClientPrincipal() throws RealmException { |
|
181 return cname; |
|
182 } |
|
183 |
172 public sun.security.krb5.Credentials setKrbCreds() { |
184 public sun.security.krb5.Credentials setKrbCreds() { |
173 // Note: We will not pass authorizationData to s.s.k.Credentials. The |
185 // Note: We will not pass authorizationData to s.s.k.Credentials. The |
174 // field in that class will be passed to Krb5Context as the return |
186 // field in that class will be passed to Krb5Context as the return |
175 // value of ExtendedGSSContext.inquireSecContext(KRB5_GET_AUTHZ_DATA), |
187 // value of ExtendedGSSContext.inquireSecContext(KRB5_GET_AUTHZ_DATA), |
176 // which is documented as the authData in the service ticket. That |
188 // which is documented as the authData in the service ticket. That |
207 |
219 |
208 public int getEType() { |
220 public int getEType() { |
209 return key.getEType(); |
221 return key.getEType(); |
210 } |
222 } |
211 |
223 |
|
224 public EncryptionKey getKey() { |
|
225 return key; |
|
226 } |
|
227 |
212 public int getTktEType() { |
228 public int getTktEType() { |
213 return ticket.encPart.getEType(); |
229 return ticket.encPart.getEType(); |
214 } |
230 } |
|
231 |
|
232 public int getTktEType2() { |
|
233 return (secondTicket == null) ? 0 : secondTicket.encPart.getEType(); |
|
234 } |
215 } |
235 } |