Searched refs:realm (Results 1 - 25 of 53) sorted by relevance

123

/openjdk7/jdk/src/share/classes/com/sun/net/httpserver/
H A DHttpPrincipal.java37 private String username, realm; field in class:HttpPrincipal
40 * creates a HttpPrincipal from the given username and realm
41 * @param username The name of the user within the realm
42 * @param realm The realm.
43 * @throws NullPointerException if either username or realm are null
45 public HttpPrincipal (String username, String realm) { argument
46 if (username == null || realm == null) {
50 this.realm = realm;
[all...]
H A DBasicAuthenticator.java36 protected String realm; field in class:BasicAuthenticator
39 * Creates a BasicAuthenticator for the given HTTP realm
40 * @param realm The HTTP Basic authentication realm
41 * @throws NullPointerException if the realm is an empty string
43 public BasicAuthenticator (String realm) { argument
44 this.realm = realm;
48 * returns the realm this BasicAuthenticator was created with
49 * @return the authenticator's realm strin
[all...]
/openjdk7/jdk/src/share/classes/sun/security/krb5/
H A DServiceName.java46 public ServiceName(String name, String realm) throws RealmException { argument
48 setRealm(realm);
51 public ServiceName (String service, String instance, String realm) argument
54 super(service, instance, realm, PrincipalName.KRB_NT_SRV_INST);
H A DRealm.java51 private String realm; field in class:Realm
58 realm = parseRealm(name);
63 if (realm != null) {
64 new_realm.realm = new String(realm);
79 if (this.realm != null && that.realm != null ) {
80 return this.realm.equals(that.realm);
82 return (this.realm
650 substring(String realm, int componentIndex) argument
[all...]
H A DKdcComm.java59 // them can also be defined in a realm, which overrides value here.
170 private String realm; field in class:KdcComm
172 public KdcComm(String realm) throws KrbException { argument
173 if (realm == null) {
174 realm = Config.getInstance().getDefaultRealm();
175 if (realm == null) {
177 "Cannot find default realm");
180 this.realm = realm;
186 realm, "udp_preference_limi
417 getRealmSpecificValue(String realm, String key, int defValue) argument
[all...]
H A DSCDynamicStoreConfig.java60 for (String realm : configs.keySet()) {
62 Hashtable<String, Collection<?>> map = (Hashtable<String, Collection<?>>) configs.get(realm);
74 realmsTable.put(realm, realmMap);
95 // convert SCDynamicStore realm structure to Java realm structure
H A DConfig.java91 * instance. Possible causes would be either of java.security.krb5.realm or
107 * instance. Possible causes would be either of java.security.krb5.realm or
156 defaultRealm = getProperty("java.security.krb5.realm");
161 "java.security.krb5.realm both must be set or " +
541 * Configuration file contains information about the default realm,
829 * Parses key-value pairs under [realms]. The key would be the realm
831 * information for the realm given within a pair of braces.
1089 * Resets the default kdc realm.
1094 public void resetDefaultRealm(String realm) { argument
1096 System.out.println(">>> Config try resetting default kdc " + realm);
1197 getKDCList(String realm) argument
1315 getKDCFromDNS(String realm) argument
[all...]
/openjdk7/jdk/test/sun/security/krb5/
H A DDnsFallback.java51 static void check(String realm, String fallback, boolean output) throws Exception { argument
55 if (realm != null) {
56 sb.append("dns_lookup_realm=" + realm + "\n");
65 System.out.println("Testing " + realm + ", " + fallback + ", " + output);
/openjdk7/jdk/src/share/classes/sun/security/jgss/wrapper/
H A DKrb5Util.java43 String realm = krbPrinc.substring(atIndex + 1);
45 buf.append(realm).append('@').append(realm);
/openjdk7/jdk/test/com/sun/security/sasl/gsskerb/
H A Drun-conf-wjaas.csh11 # REALM is the KDC's realm. The principal must be a host-based service.
26 # 7. Update the realm and kdc settings in this script.
29 $JAVA_HOME/bin/java -Djava.security.krb5.realm=IMC.ORG -Djava.security.krb5.kdc=machineX.imc.org -Djava.security.auth.login.config=gsseg_jaas.conf ConfSecurityLayer
H A Drun-nosec-wjaas.csh7 # REALM is the KDC's realm. The principal must be a host-based service.
22 # 7. Update the realm and kdc settings in this script.
24 java -Djava.security.krb5.realm=IMC.ORG -Djava.security.krb5.kdc=machineX.imc.org -Djava.security.auth.login.config=gsseg_jaas.conf NoSecurityLayer
H A Drunwjaas.csh7 # REALM is the KDC's realm. The principal must be a host-based service.
22 # 7. Update the realm and kdc settings in this script.
24 java -Djava.security.krb5.realm=IMC.ORG -Djava.security.krb5.kdc=machineX.imc.org -Djava.security.auth.login.config=gsseg_jaas.conf AuthOnly
/openjdk7/jdk/src/share/classes/sun/security/krb5/internal/ktab/
H A DKeyTabOutputStream.java71 byte[] realm = null;
73 realm = entry.service.getRealmString().getBytes("8859_1");
77 write16(realm.length);
78 write(realm);
H A DKeyTabEntry.java45 Realm realm; field in class:KeyTabEntry
55 realm = new_realm;
94 realmLen = realm.toString().getBytes("8859_1").length;
H A DKeyTabInputStream.java76 if (ktVersion == KRB5_KT_VNO_1) { //V1 includes realm in the count.
79 Realm realm = new Realm(readName());
87 service.setRealm(realm);
117 return new KeyTabEntry(service, realm, timeStamp, keyVersion, keyType, keyblock);
133 int length = read(2); //length of the realm name or service name
/openjdk7/jdk/src/share/classes/sun/net/www/protocol/http/
H A DHttpAuthenticator.java64 * <-- WWW-Authenticate: Basic realm="WallyWorld"
74 public String authString (URL u, String scheme, String realm); argument
H A DAuthenticationInfo.java60 * If true, then simultaneous authentication requests to the same realm/proxy
98 return realm;
109 * Authenticator for a particular realm is single threaded.
160 //return ("{"+type+":"+authScheme+":"+protocol+":"+host+":"+port+":"+realm+":"+path+"}");
185 /** The realm we're authenticating against. */
186 String realm; field in class:AuthenticationInfo
192 public AuthenticationInfo(char type, AuthScheme authScheme, String host, int port, String realm) { argument
198 this.realm = realm;
215 public AuthenticationInfo(char type, AuthScheme authScheme, URL url, String realm) { argument
273 getServerAuthKey(URL url, String realm, AuthScheme scheme) argument
321 getProxyAuthKey(String host, int port, String realm, AuthScheme scheme) argument
[all...]
H A DBasicAuthentication.java49 /** The authentication string for this host, port, and realm. This is
57 String realm, PasswordAuthentication pw) {
59 AuthScheme.BASIC, host, port, realm);
87 String realm, String auth) {
89 AuthScheme.BASIC, host, port, realm);
96 public BasicAuthentication(boolean isProxy, URL url, String realm, argument
99 AuthScheme.BASIC, url, realm);
126 public BasicAuthentication(boolean isProxy, URL url, String realm, argument
129 AuthScheme.BASIC, url, realm);
56 BasicAuthentication(boolean isProxy, String host, int port, String realm, PasswordAuthentication pw) argument
86 BasicAuthentication(boolean isProxy, String host, int port, String realm, String auth) argument
/openjdk7/jdk/src/share/classes/javax/security/auth/kerberos/
H A DKerberosPrincipal.java87 private transient String realm; field in class:KerberosPrincipal
101 * represents a principal, and <i>FOO.COM</i> represents a realm).
103 * <p>If the input name does not contain a realm, the default realm
104 * is used. The default realm can be specified either in a Kerberos
105 * configuration file or via the java.security.krb5.realm
113 * the realm to use and the default realm is not specified
115 * java.security.krb5.realm system property.
122 // Appends the default realm i
[all...]
/openjdk7/jdk/test/com/sun/security/sasl/
H A DClientCallbackHandler.java95 String realm = rcb.getDefaultText();
98 if (realm != null) {
99 rcb.setText(realm);
102 if (realm == null) {
105 System.err.print(rcb.getPrompt() + " [" + realm + "] ");
112 result = realm;
/openjdk7/jdk/test/com/sun/security/sasl/digest/
H A DClientCallbackHandler.java95 String realm = rcb.getDefaultText();
98 if (realm != null) {
99 rcb.setText(realm);
102 if (realm == null) {
105 System.err.print(rcb.getPrompt() + " [" + realm + "] ");
112 result = realm;
/openjdk7/jdk/src/windows/classes/sun/security/krb5/internal/tools/
H A DKinitOptions.java66 public String realm; field in class:KinitOptions
85 realm = r;
89 if (realm == null) {
150 String realm =
153 if (realm != null) {
154 principal.setRealm(realm);
179 String realm = null;
181 realm = Config.getInstance().getDefaultRealm();
183 System.out.println ("Can not get default realm " +
209 p.setRealm(realm);
[all...]
H A DKinit.java200 String realm = options.getKDCRealm();
201 if (realm == null) {
202 realm = Config.getInstance().getDefaultRealm();
206 System.out.println(">>> Kinit realm name is " + realm);
209 PrincipalName sname = new PrincipalName("krbtgt" + "/" + realm,
211 sname.setRealm(realm);
/openjdk7/jdk/src/share/classes/sun/security/krb5/internal/
H A DTicket.java48 * realm [1] Realm,
63 public Realm realm; field in class:Ticket
72 new_ticket.realm = (Realm)realm.clone();
85 realm = new_realm;
126 realm = Realm.parse(der.getData(), (byte)0x01, false);
145 bytes.write(DerValue.createTag(DerValue.TAG_CONTEXT, true, (byte)0x01), realm.asn1Encode());
/openjdk7/jdk/test/java/net/Authenticator/
H A DB6870935.java47 static String realm = "wallyworld"; field in class:B6870935
59 "Proxy-Authenticate: Digest realm=\""+realm+"\" domain=/ "+
102 true, username,passwd,realm,
113 realm, false, uri, "GET", cnonce,
126 private String getAuthorization (String realm, boolean isRequest, String uri, String method, String cnonce, String cnstring, char[] password, String username) { argument
130 response = computeDigest(isRequest, username,passwd,realm,
146 String realm, String connMethod,
157 A1 = userName + ":" + realm + ":";
144 computeDigest( boolean isRequest, String userName, char[] password, String realm, String connMethod, String requestURI, String nonceString, String cnonce, String ncValue ) argument

Completed in 79 milliseconds

123