src/java.security.jgss/share/classes/sun/security/krb5/internal/ccache/CCacheOutputStream.java
equal
deleted
inserted
replaced
29 */ |
29 */ |
30 |
30 |
31 package sun.security.krb5.internal.ccache; |
31 package sun.security.krb5.internal.ccache; |
32 |
32 |
33 import java.io.IOException; |
33 import java.io.IOException; |
34 import java.io.FileOutputStream; |
|
35 import java.io.OutputStream; |
34 import java.io.OutputStream; |
36 import sun.security.krb5.internal.util.KrbDataOutputStream; |
35 import sun.security.krb5.internal.util.KrbDataOutputStream; |
37 import sun.security.krb5.*; |
36 import sun.security.krb5.*; |
38 import sun.security.krb5.internal.*; |
37 import sun.security.krb5.internal.*; |
39 |
38 |
96 creds.authorizationData.writeAuth(this); |
95 creds.authorizationData.writeAuth(this); |
97 writeTicket(creds.ticket); |
96 writeTicket(creds.ticket); |
98 writeTicket(creds.secondTicket); |
97 writeTicket(creds.secondTicket); |
99 } |
98 } |
100 |
99 |
|
100 public void addConfigEntry(PrincipalName cname, CredentialsCache.ConfigEntry e) |
|
101 throws IOException { |
|
102 cname.writePrincipal(this); |
|
103 e.getSName().writePrincipal(this); |
|
104 write16(0); write16(0); write32(0); |
|
105 write32(0); write32(0); write32(0); write32(0); |
|
106 write8(0); |
|
107 write32(0); |
|
108 write32(0); |
|
109 write32(0); |
|
110 write32(e.getData().length); |
|
111 write(e.getData()); |
|
112 write32(0); |
|
113 } |
|
114 |
101 void writeTicket(Ticket t) throws IOException, Asn1Exception { |
115 void writeTicket(Ticket t) throws IOException, Asn1Exception { |
102 if (t == null) { |
116 if (t == null) { |
103 write32(0); |
117 write32(0); |
104 } |
118 } |
105 else { |
119 else { |