Package org.apache.shindig.auth

Examples of org.apache.shindig.auth.AnonymousSecurityToken


          throws SecurityTokenException {
    // FIXME: This is so gross that I have to do this. Shindig needs to be fixed so I can
    // consistently get the container from tokenParameters.
    String token = tokenParameters.get(SecurityTokenCodec.SECURITY_TOKEN_NAME);
    if (token == null || token.length() == 0) {
      return new AnonymousSecurityToken();
    }

    String[] tokenParts = token.split(":");
    String container;
    if (tokenParts.length == 2) {
View Full Code Here


    assertTrue(encodedToken.split(":").length == 2);
  }

  @Test
  public void testEncodeTokenInsecure() throws Exception {
    SecurityToken token = new AnonymousSecurityToken("insecure", 0L, "*");
    String encodedToken = this.codec.encodeToken(token);
    assertTrue("The token string contains the container we put in",
            encodedToken.contains("insecure"));
    assertTrue(encodedToken.split(":").length > 2);
  }
View Full Code Here

TOP

Related Classes of org.apache.shindig.auth.AnonymousSecurityToken

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.