Searched refs:token (Results 1 - 25 of 60) sorted by relevance

123

/glassfish-3.1.2/admin/rest/src/main/java/org/glassfish/admin/rest/readers/
H A DXmlInputObject.java115 Object token;
121 token = reader.nextToken();
124 if (token == BANG) {
133 token = reader.nextToken();
134 if (token.equals("CDATA")) {
148 token = reader.nextMeta();
149 if (token == null) {
151 } else if (token == LT) {
153 } else if (token == GT) {
158 } else if (token
[all...]
H A DParameterMapFormReader.java80 String token;
82 token = tokenizer.nextToken();
83 int idx = token.indexOf('=');
85 map.add(URLDecoder.decode(token,"UTF-8"), null);
87 map.add(URLDecoder.decode(token.substring(0, idx),"UTF-8"), URLDecoder.decode(token.substring(idx+1),"UTF-8"));
H A DFormReader.java80 String token;
82 token = tokenizer.nextToken();
83 int idx = token.indexOf('=');
85 map.put(URLDecoder.decode(token,"UTF-8"), null);
87 map.put(URLDecoder.decode(token.substring(0, idx),"UTF-8"), URLDecoder.decode(token.substring(idx+1),"UTF-8"));
/glassfish-3.1.2/admin/util/src/main/java/com/sun/enterprise/admin/util/
H A DTokenValue.java49 public final String token; field in class:TokenValue
61 * @param token a String that is the name of the token in this TokenValue.
62 * @param value a String that is the value of the token.
68 public TokenValue(String token, String value) { argument
69 this(token, value, DEFAULT_DELIMITER);
72 public TokenValue(String token, String value, String delimiter) { argument
73 if (token == null || value == null || delimiter == null) {
76 this.token = token;
[all...]
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/universal/glassfish/
H A DTokenResolver.java58 * If the token has no such property -- then I leave the token as is.
60 * token embedded in the value -- it will not be further resolved.
80 * @param map Map of Strings to be token-replaced
98 // usual case -- the RHS has a token
106 // less usual case -- the LHS has a token. Need to remove the entry
120 * @param list List of Strings to be token-replaced
136 * @param s String to be token-replaced
151 for (Token token : tokens) {
152 resolved = GFLauncherUtils.replace(resolved, token
261 String token; field in class:TokenResolver.Token
[all...]
H A DGFLauncherUtils.java153 public static String replace(String s, String token, String replace) { argument
154 if (s == null || s.length() <= 0 || token == null || token.length() <= 0) {
158 int index = s.indexOf(token);
164 int tokenLength = token.length();
/glassfish-3.1.2/web/web-naming/src/main/java/org/apache/naming/
H A DContextAccessController.java95 * Set a security token for a context. Can be set only once.
98 * @param token Security token
100 public static void setSecurityToken(Object name, Object token) { argument
101 if ((!securityTokens.containsKey(name)) && (token != null)) {
102 securityTokens.put(name, token);
108 * Remove a security token for a context.
111 * @param token Security token
113 public static void unsetSecurityToken(Object name, Object token) { argument
128 checkSecurityToken(Object name, Object token) argument
141 setWritable(Object name, Object token) argument
[all...]
H A DContextBindings.java143 * @param token Security token
146 Object token) {
147 if (ContextAccessController.checkSecurityToken(name, token))
166 * @param token Security token
168 public static void unbindContext(Object name, Object token) { argument
169 if (ContextAccessController.checkSecurityToken(name, token))
199 * @param token Security token
145 bindContext(Object name, Context context, Object token) argument
201 bindThread(Object name, Object token) argument
230 unbindThread(Object name, Object token) argument
289 bindClassLoader(Object name, Object token) argument
302 bindClassLoader(Object name, Object token, ClassLoader classLoader) argument
332 unbindClassLoader(Object name, Object token) argument
344 unbindClassLoader(Object name, Object token, ClassLoader classLoader) argument
[all...]
/glassfish-3.1.2/admin/cli/src/main/java/com/sun/enterprise/admin/cli/
H A DArgumentTokenizer.java51 protected StringBuilder token = new StringBuilder(); field in class:ArgumentTokenizer
95 * Return the next token from this tokenizer.
97 * @return the next token from this tokenizer.
104 throw new NoSuchElementException(strings.get("token.noMoreTokens"));
110 * Return the next token starting at the current position,
123 strings.get("token.escapeAtEOL"));
126 token.append('\\');
130 token.append(c);
134 strings.get("token.unbalancedQuotes"));
138 strings.get("token
[all...]
/glassfish-3.1.2/admin/rest/src/test/java/org/glassfish/admin/rest/
H A DTokenAuthenticationTest.java66 //Verify a session token got created
67 String token = getSessionToken();
69 // Verify we can use the session token.
70 ClientResponse response = client.resource(getAddress("/domain")).cookie(new Cookie(GF_REST_TOKEN_COOKIE_NAME, token)).get(ClientResponse.class);
73 //Delete the token
74 response = client.resource(getAddress(URL_DOMAIN_SESSIONS) + "/" + token).cookie(new Cookie(GF_REST_TOKEN_COOKIE_NAME, token)).delete(ClientResponse.class);
86 String token = null;
90 deleteUserAuthTestUser(token);
104 // Authenticate, get the token, the
130 deleteUserAuthTestUser(String token) argument
[all...]
/glassfish-3.1.2/common/common-util/src/main/java/org/glassfish/common/util/admin/
H A DAuthTokenManager.java67 * a one-time authentication token. The DAS command then includes the token,
71 * When an admin request arrives with a token, the AdminAdapter consults this
72 * service to see if the token is valid and, if so, the AdminAdapter
75 * We allow each token to be used twice, once for retrieving the command
78 * Tokens have a limited life as measured in time also. If a token is created
80 * token invalid and removes it from the collection of known valid tokens.
85 * start-cluster - will need to reuse the authentication token more than twice.
86 * For such purposes the code using the token can append a "+" to the token
123 private final String token; field in class:AuthTokenManager.TokenInfo
183 consumeToken(final String token) argument
205 markTokenForReuse(final String token) argument
[all...]
/glassfish-3.1.2/security/ejb.security/src/main/java/com/sun/enterprise/iiop/security/
H A DGSSUtils.java267 byte[] token = new byte[tokensize];
272 token[0] = 0x04;
273 token[1] = 0x01;
274 token[2] = (byte)(oidDER.length & 0xFF00);
275 token[3] = (byte)(oidDER.length & 0x00FF);
278 System.arraycopy(oidDER, 0, token, pos, oidDER.length);
283 token[pos++] = (byte)(namelen & 0xFF000000);
284 token[pos++] = (byte)(namelen & 0x00FF0000);
285 token[pos++] = (byte)(namelen & 0x0000FF00);
286 token[po
395 getMechToken(ObjectIdentifier oid, byte[] token) argument
429 verifyTokenHeader(ObjectIdentifier oid, byte [] token) argument
494 writeDERLength(byte [] token, int index, int length) argument
511 readDERLength(byte[] token, int index) argument
[all...]
/glassfish-3.1.2/appclient/client/appclient-scripts/src/main/resources/glassfish/bin/
H A Dappclient.js155 var token = tokens[tokenIndex];
158 matched = matchToWithType(token, jvmValuedOptions, "JVM");
160 matched = matchToWithType(token, accValuedOptions, "ACC");
163 matched = matchTo(token, accNonvaluedOptions);
165 recordACCArg(token);
166 if ((token == "-usage") || (token == "-help")) {
172 var tokenString = new String(token);
174 matched = token;
175 recordNonACCOption(token);
[all...]
/glassfish-3.1.2/installer/src/main/java/org/glassfish/installer/util/
H A DStringUtils.java126 * Substitute the token with the given value in a StringBuffer and
129 * @param token Token to scan for in the buffer str.
131 * @return new String formed after token replacement.
133 static public String substString(StringBuffer str, String token, String newValue) { argument
134 int offset = 0, tokenLen = token.length(), valLen = newValue.length();
135 offset = str.toString().indexOf(token, offset);
139 offset = str.toString().indexOf(token, offset);
/glassfish-3.1.2/registration/registration-impl/src/main/java/com/sun/enterprise/registration/impl/environment/
H A DSolarisSystemEnvironment.java84 String token = "clock_MHz";
87 if (line.startsWith(token)) {
88 return line.substring(line.indexOf(token) + token.length()).trim();
98 String token = "brand";
101 if (line.startsWith(token)) {
102 return line.substring(line.indexOf(token) + token.length()).trim();
113 String token = " cpu_info ";
116 if (line.indexOf(token) !
[all...]
H A DLinuxSystemEnvironment.java230 String token = "cpu MHz";
232 if (line.contains(token)) {
244 String token = "model name";
246 if (line.contains(token)) {
259 String token = "processor";
261 if (line.contains(token)) {
274 String token = "core id";
276 if (line.contains(token)) {
/glassfish-3.1.2/tests/embedded/maven-plugin/websockets/src/main/webapp/javascripts/
H A Dbehaviour.js161 token = tokens[i].replace(/^\s+/,'').replace(/\s+$/,'');;
162 if (token.indexOf('#') > -1) {
164 var bits = token.split('#');
174 continue; // Skip to next token
176 if (token.indexOf('.') > -1) {
178 var bits = token.split('.');
205 continue; // Skip to next token
208 if (token.match(/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/)) {
264 continue; // Skip to next token
271 // If we get here, token i
[all...]
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/startup/
H A DPasswdUserDatabase.java199 String token = null;
202 token = line.substring(0, colon);
205 token = line;
208 tokens[n++] = token;
/glassfish-3.1.2/admin/rest/src/main/java/org/glassfish/admin/rest/cli/
H A DGetTokensCommand.java99 for (String token : tokens) {
100 String value = resolver.getPropertyValue(token);
102 value = System.getProperty(token);
104 output.append(sep).append(token).append(" = ").append(value);
106 values.put(token, value);
/glassfish-3.1.2/flashlight/framework/src/main/java/org/glassfish/flashlight/impl/core/
H A DProviderSubClassImplGenerator.java141 String token; field in class:ProviderSubClassImplGenerator.ProbeProviderSubClassGenerator
144 ProbeProviderSubClassGenerator(ClassVisitor cv, String token, String id) { argument
147 this.token = token;
153 super.visit(version, access, name + token + id, signature, name, interfaces);
160 return new ProbeProviderAnnotationVisitor(delegate, token);
201 private String token; field in class:ProviderSubClassImplGenerator.ProbeProviderAnnotationVisitor
203 ProbeProviderAnnotationVisitor(AnnotationVisitor delegate, String token) { argument
205 this.token = token;
[all...]
/glassfish-3.1.2/core/kernel/src/main/java/com/sun/enterprise/v3/server/
H A DClassLoaderHierarchyImpl.java164 for( String token : new Tokenizer(importedBundles,",")) {
165 Collection<Module> modules = modulesRegistry.getModules(token);
169 throw new ResolveError("Not able to locate a unique module by name " + token);
177 for (String token : new Tokenizer(additionalRepo, ",")) {
179 int equals = token.indexOf('=');
187 String name = token.substring(0, equals);
188 String path = token.substring(++equals);
198 for (String token : new Tokenizer(requestedWiring, ",")) {
199 for (Inhabitant<?> impl : habitat.getInhabitantsByContract(token)) {
/glassfish-3.1.2/deployment/common/src/main/java/org/glassfish/deployment/versioning/
H A DVersioningUtils.java72 * untagged name from the first token.
114 * and retrieve the 2nd token.
252 String token = st.nextToken();
259 // get the position of the last token in the current identifier
266 if ( expressionVersion.startsWith(token)
267 && ! identifier.startsWith(token) ) {
269 } else if ( expressionVersion.endsWith(token)
270 && !identifier.endsWith(token) ) {
272 } else if ( !identifier.contains(token.subSequence(0, token
[all...]
/glassfish-3.1.2/persistence/cmp/support-ejb/src/main/antlr/
H A DEJBQL.g146 // other token types
151 // lexer internal token types
236 Token token = mismatched.token;
238 (token != null)) {
239 if (token.getType() == Token.EOF_TYPE) {
240 ErrorMsg.error(token.getLine(), token.getColumn(),
245 ErrorMsg.error(token.getLine(), token
[all...]
/glassfish-3.1.2/persistence/cmp/support-sqlstore/src/main/antlr/
H A DJQL.g244 // from another lexer rule -- it will not ever directly return a token to
415 k = 2; // two token lookahead
560 Token token = mismatched.token;
562 (token != null))
564 if (token.getType() == Token.EOF_TYPE) {
565 errorMsg.error(token.getLine(), token.getColumn(),
569 errorMsg.error(token.getLine(), token
[all...]
/glassfish-3.1.2/security/ssl-impl/src/main/java/com/sun/enterprise/server/pluggable/
H A DSecuritySupport.java93 * @param token
94 * @return a keystore. If token is null, return the the first keystore.
96 abstract public KeyStore getKeyStore(String token); argument
99 * @param token
100 * @return a truststore. If token is null, return the first truststore.
102 abstract public KeyStore getTrustStore(String token); argument
154 * This method returns an array of token names in order corresponding to

Completed in 7205 milliseconds

123