Package org.apache.rahas

Examples of org.apache.rahas.EncryptedKeyToken


                      String encryptedKeyID = (String)wser.get(WSSecurityEngineResult.TAG_ENCRYPTED_KEY_ID);
                     
                          Date created = new Date();
                          Date expires = new Date();
                          expires.setTime(System.currentTimeMillis() + 300000);
                          EncryptedKeyToken tempTok = new EncryptedKeyToken(encryptedKeyID,created,expires);
                          tempTok.setSecret((byte[])wser.get(WSSecurityEngineResult.TAG_DECRYPTED_KEY));
                          tempTok.setSHA1(getSHA1((byte[])wser.get(WSSecurityEngineResult.TAG_ENCRYPTED_EPHEMERAL_KEY)));
                          rmd.getTokenStorage().add(tempTok);
                         
                          return encryptedKeyID;
                       
                    } catch (TrustException e) {
View Full Code Here


                      String encryptedKeyID = (String)wser.get(WSSecurityEngineResult.TAG_ENCRYPTED_KEY_ID);
                     
                          Date created = new Date();
                          Date expires = new Date();
                          expires.setTime(System.currentTimeMillis() + 300000);
                          EncryptedKeyToken tempTok = new EncryptedKeyToken(encryptedKeyID,created,expires);
                          tempTok.setSecret((byte[])wser.get(WSSecurityEngineResult.TAG_DECRYPTED_KEY));
                          tempTok.setSHA1(getSHA1((byte[])wser.get(WSSecurityEngineResult.TAG_ENCRYPTED_EPHEMERAL_KEY)));
                          rmd.getTokenStorage().add(tempTok);
                         
                          return encryptedKeyID;
                       
                    } catch (TrustException e) {
View Full Code Here

                krbToken = getKerberosTokenBuilder(rmd, sigToken);
                sigTokId = krbToken.getBSTTokenId();
                if (rmd.isInitiator()) {
                    sigTokElem = krbToken.getBinarySecurityTokenElement();
                }
                sigTok = new EncryptedKeyToken(sigTokId, created, expires);
                sigTok.setSecret(krbToken.getSessionKey().getEncoded());
            }
        } else {
            throw new RampartException("signatureTokenMissing");
        }
View Full Code Here

                                    .get(WSSecurityEngineResult.TAG_ENCRYPTED_KEY_ID);

                            Date created = new Date();
                            Date expires = new Date();
                            expires.setTime(System.currentTimeMillis() + 300000);
                            EncryptedKeyToken tempTok = new EncryptedKeyToken(encryptedKeyID,
                                    created, expires);
                            tempTok.setSecret((byte[]) wser
                                    .get(WSSecurityEngineResult.TAG_DECRYPTED_KEY));
                            tempTok.setSHA1(getSHA1((byte[]) wser
                                    .get(WSSecurityEngineResult.TAG_ENCRYPTED_EPHEMERAL_KEY)));
                            rmd.getTokenStorage().add(tempTok);

                            return encryptedKeyID;
View Full Code Here

                      String encryptedKeyID = (String)wser.get(WSSecurityEngineResult.TAG_ENCRYPTED_KEY_ID);
                     
                          Date created = new Date();
                          Date expires = new Date();
                          expires.setTime(System.currentTimeMillis() + 300000);
                          EncryptedKeyToken tempTok = new EncryptedKeyToken(encryptedKeyID,created,expires);
                          tempTok.setSecret((byte[])wser.get(WSSecurityEngineResult.TAG_DECRYPTED_KEY));
                          tempTok.setSHA1(getSHA1((byte[])wser.get(WSSecurityEngineResult.TAG_ENCRYPTED_EPHEMERAL_KEY)));
                          rmd.getTokenStorage().add(tempTok);
                         
                          return encryptedKeyID;
                       
                    } catch (TrustException e) {
View Full Code Here

                            String encryptedKeyID = (String) wsSecEngineResult.get(WSSecurityEngineResult.TAG_ID);

                            Date created = new Date();
                            Date expires = new Date();
                            expires.setTime(System.currentTimeMillis() + 300000);
                            EncryptedKeyToken tempTok = new EncryptedKeyToken(encryptedKeyID, created, expires);
                            tempTok.setSecret((byte[]) wsSecEngineResult.get(WSSecurityEngineResult.TAG_SECRET));
                            tempTok.setSHA1(getSHA1((byte[]) wsSecEngineResult.
                                    get(WSSecurityEngineResult.TAG_ENCRYPTED_EPHEMERAL_KEY)));
                            rmd.getTokenStorage().add(tempTok);

                            return encryptedKeyID;
View Full Code Here

TOP

Related Classes of org.apache.rahas.EncryptedKeyToken

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.