Examples of InitialContextToken


Examples of org.omg.GSSUP.InitialContextToken

    public Subject check(EstablishContext msg) throws SASException {
        Subject result = null;

        try {
            if (msg.client_authentication_token != null && msg.client_authentication_token.length > 0) {
                InitialContextToken token = new InitialContextToken();

                if (!Util.decodeGSSUPToken(Util.getCodec(), msg.client_authentication_token, token))
                    throw new SASException(2);

                if (token.target_name == null) return null;
View Full Code Here

Examples of org.omg.GSSUP.InitialContextToken

            // I don't know why there is not a better way
            // to go from char[] -> byte[]
            byte[] password = serverPassword.getBytes("UTF-8");
           
            // create authentication token
            InitialContextToken authenticationToken =
               new InitialContextToken(username,
                                       password,
                                       encodedTargetName);
            // ASN.1-encode it, as defined in RFC 2743
            encodedAuthenticationToken =
               CSIv2Util.encodeInitialContextToken(authenticationToken, codec);
View Full Code Here

Examples of org.omg.GSSUP.InitialContextToken

                  String tmp = credential.toString();
                  password = tmp.getBytes("UTF-8");
               }

               // create authentication token
               InitialContextToken authenticationToken =
                  new InitialContextToken(username,
                                          password,
                                          encodedTargetName);
               // ASN.1-encode it, as defined in RFC 2743
               byte[] encodedAuthenticationToken =
                  CSIv2Util.encodeInitialContextToken(authenticationToken,
View Full Code Here

Examples of org.omg.GSSUP.InitialContextToken

      catch(Exception e)
      {
         return null;
      }
     
      InitialContextToken contextToken =
         InitialContextTokenHelper.extract(any);
     
      return contextToken;
     
   }
View Full Code Here

Examples of org.omg.GSSUP.InitialContextToken

            if (message.client_authentication_token != null
                && message.client_authentication_token.length > 0)
            {
               if (traceEnabled)
                  log.trace("received client authentication token");
               InitialContextToken authToken =
                  CSIv2Util.decodeInitialContextToken(
                                          message.client_authentication_token,
                                          codec);
               if (authToken == null)
               {
View Full Code Here

Examples of org.omg.GSSUP.InitialContextToken

        // Extract client authentication token
        if (support_gssup_authorization
            && establishMsg.identity_token.discriminator() == ITTAbsent.value
            && establishMsg.client_authentication_token.length > 0)
        {
            InitialContextToken gssupToken = decodeGSSUPToken(establishMsg.client_authentication_token);

            String useratrealm = utf8decode(gssupToken.username);

            String name;
            String realm;
View Full Code Here

Examples of org.omg.GSSUP.InitialContextToken

            }

        } else {

            // Make GSSUP InitialContextToken
            InitialContextToken gssupToken = new InitialContextToken();
            gssupToken.username = utf8encode(scopedUserName);
            gssupToken.target_name = encodeGSSExportedName(realm);
            gssupToken.password = utf8encode(password);

            establishMsg.client_authentication_token = encodeGSSUPToken(gssupToken);
View Full Code Here

Examples of org.omg.GSSUP.InitialContextToken

/*     */           {
/* 166 */             String tmp = credential.toString();
/* 167 */             password = tmp.getBytes("UTF-8");
/*     */           }
/*     */
/* 171 */           InitialContextToken authenticationToken = new InitialContextToken(username, password, encodedTargetName);
/*     */
/* 176 */           byte[] encodedAuthenticationToken = CSIv2Util.encodeInitialContextToken(authenticationToken, this.codec);
/*     */
/* 181 */           EstablishContext message = new EstablishContext(0L, noAuthorizationToken, absentIdentityToken, encodedAuthenticationToken);
/*     */
View Full Code Here

Examples of org.omg.GSSUP.InitialContextToken

/*     */
/* 388 */         if ((message.client_authentication_token != null) && (message.client_authentication_token.length > 0))
/*     */         {
/* 391 */           if (traceEnabled)
/* 392 */             log.trace("received client authentication token");
/* 393 */           InitialContextToken authToken = CSIv2Util.decodeInitialContextToken(message.client_authentication_token, this.codec);
/*     */
/* 397 */           if (authToken == null)
/*     */           {
/* 399 */             threadLocal.sasReply = createMsgCtxError(message.client_context_id, 2);
/*     */
View Full Code Here

Examples of org.omg.GSSUP.InitialContextToken

/*     */     catch (Exception e)
/*     */     {
/* 748 */       return null;
/*     */     }
/*     */
/* 751 */     InitialContextToken contextToken = InitialContextTokenHelper.extract(any);
/*     */
/* 754 */     return contextToken;
/*     */   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.