/glassfish-3.1.2/web/web-naming/src/main/java/org/apache/naming/ |
H A D | ContextAccessController.java | 95 * 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 D | ContextBindings.java | 143 * @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/rest/src/test/java/org/glassfish/admin/rest/ |
H A D | TokenAuthenticationTest.java | 66 //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/admin/cli/src/main/java/com/sun/enterprise/admin/cli/ |
H A D | ArgumentTokenizer.java | 51 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...] |
H A D | ProgramOptions.java | 397 public void setAuthToken(final String token) { argument 398 options.set(AUTHTOKEN, token);
|
/glassfish-3.1.2/admin/util/src/main/java/com/sun/enterprise/admin/util/ |
H A D | TokenValue.java | 49 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/org/glassfish/common/util/admin/ |
H A D | ParamTokenizer.java | 58 protected StringBuilder token = new StringBuilder(); field in class:ParamTokenizer 86 * Return the next token from this tokenizer. 88 * @return the next token from this tokenizer. 101 * Return the next token from this tokenizer. 104 * @return the next token from this tokenizer. 117 * Return the next token starting at the current position. 124 token.append(c); 135 token.append('\\'); 139 token.append(c); 146 token [all...] |
H A D | AuthTokenManager.java | 67 * 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/installer/src/main/java/org/glassfish/installer/util/ |
H A D | StringUtils.java | 126 * 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);
|
H A D | FileIOUtils.java | 128 * @param token Token to replace. 131 public void findandReplaceAll(String token, String newValue) { argument 136 token, newValue));
|
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/universal/glassfish/ |
H A D | GFLauncherUtils.java | 153 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();
|
H A D | TokenResolver.java | 58 * 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...] |
/glassfish-3.1.2/ha/ha-apt/src/main/java/org/glassfish/ha/store/apt/generators/ |
H A D | StoreEntryMetadataGenerator.java | 90 private void printInfo(String methodName, String attrName, String javaDoc, TypeMirror paramType, String token) { argument 92 println("//@" + token + "(name=\"" + attrName + "\")"); 97 + ", \"" + token + "\");"); 156 println("String token;"); 160 println("String token) {"); 165 println("this.token = token;"); 177 println("return \"Version\".equals(token);"); 183 println("return \"HashKey\".equals(token);");
|
/glassfish-3.1.2/security/ejb.security/src/main/java/com/sun/enterprise/iiop/security/ |
H A D | GSSUtils.java | 267 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/security/ssl-impl/src/main/java/com/sun/enterprise/server/pluggable/ |
H A D | SecuritySupport.java | 93 * @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
|
/glassfish-3.1.2/core/kernel/src/main/java/com/sun/enterprise/v3/services/impl/ |
H A D | GrizzlyProxy.java | 232 static ArrayList<String> toArray(String list, String token){ argument 233 return new ArrayList<String>(Arrays.asList(list.split(token)));
|
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/util/ |
H A D | StringUtils.java | 257 public static String replace(String s, String token, String replace) { argument 258 if (s == null || s.length() <= 0 || token == null || token.length() <= 0) { 262 int index = s.indexOf(token); 268 int tokenLength = token.length(); 460 String token; 464 token = st.nextToken().trim(); 465 if (token.length() > 0) { 466 tokens.add(token);
|
/glassfish-3.1.2/flashlight/framework/src/main/java/org/glassfish/flashlight/impl/core/ |
H A D | ProviderSubClassImplGenerator.java | 141 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/security/ssl-impl/src/main/java/com/sun/enterprise/security/ssl/impl/ |
H A D | SecuritySupportImpl.java | 357 * This method returns an array of token names in order corresponding to 365 * @param token 368 public KeyStore getKeyStore(String token) { argument 369 int idx = getTokenIndex(token); 377 * @param token 380 public KeyStore getTrustStore(String token) { argument 381 int idx = getTokenIndex(token); 391 private int getTokenIndex(String token) { argument 393 if (token != null) { 394 idx = tokenNames.indexOf(token); [all...] |
/glassfish-3.1.2/admin/monitor/src/main/java/org/glassfish/flashlight/datatree/impl/ |
H A D | AbstractTreeNode.java | 287 private String[] dropFirstStringToken(String[] token) { argument 288 if (token.length == 0) { 291 if (token.length == 1) { 294 String[] newToken = new String[token.length - 1]; 296 newToken[i] = token[i + 1]; 336 // Simple solution is to replace literal slashes with a token. The probe 338 // Here we replace slash in the given pattern with the token to pull out
|
/glassfish-3.1.2/admingui/common/src/main/java/org/glassfish/admingui/common/util/ |
H A D | RestUtil.java | 124 public static String resolveToken(String endpoint, String token) { argument 127 if (!token.trim().startsWith(tokenStartMarker)) 128 return token; 129 int start = token.indexOf(tokenStartMarker); 131 return token; 132 int end = token.lastIndexOf(tokenEndMarker); 134 return token; 137 String str = token.substring(start + tokenStartMarker.length(), end - tokenEndMarker.length() + 1); 146 return token; 704 * <p> This method returns the value of the REST token i [all...] |