Examples of requestSecurityToken()


Examples of org.apache.cxf.ws.security.kerberos.KerberosClient.requestSecurityToken()

                if (isRequestor(message)) {
                    SecurityToken tok = null;
                    try {
                        KerberosClient client = KerberosUtils.getClient(message, "kerberos");
                        synchronized (client) {
                            tok = client.requestSecurityToken();
                        }
                    } catch (RuntimeException e) {
                        throw e;
                    } catch (Exception e) {
                        throw new Fault(e);
View Full Code Here

Examples of org.apache.cxf.ws.security.kerberos.KerberosClient.requestSecurityToken()

                if (isRequestor(message)) {
                    SecurityToken tok = null;
                    try {
                        KerberosClient client = KerberosUtils.getClient(message, "kerberos");
                        synchronized (client) {
                            tok = client.requestSecurityToken();
                        }
                    } catch (RuntimeException e) {
                        throw e;
                    } catch (Exception e) {
                        throw new Fault(e);
View Full Code Here

Examples of org.apache.cxf.ws.security.kerberos.KerberosClient.requestSecurityToken()

                    }
                    if (tok == null) {
                        try {
                            KerberosClient client = KerberosUtils.getClient(message, "kerberos");
                            synchronized (client) {
                                tok = client.requestSecurityToken();
                            }
                        } catch (RuntimeException e) {
                            throw e;
                        } catch (Exception e) {
                            throw new Fault(e);
View Full Code Here

Examples of org.apache.cxf.ws.security.kerberos.KerberosClient.requestSecurityToken()

                    }
                    if (tok == null) {
                        try {
                            KerberosClient client = KerberosUtils.getClient(message, "kerberos");
                            synchronized (client) {
                                tok = client.requestSecurityToken();
                            }
                        } catch (RuntimeException e) {
                            throw e;
                        } catch (Exception e) {
                            throw new Fault(e);
View Full Code Here

Examples of org.apache.cxf.ws.security.kerberos.KerberosClient.requestSecurityToken()

                    }
                    if (tok == null) {
                        try {
                            KerberosClient client = KerberosUtils.getClient(message, "kerberos");
                            synchronized (client) {
                                tok = client.requestSecurityToken();
                            }
                        } catch (RuntimeException e) {
                            throw e;
                        } catch (Exception e) {
                            throw new Fault(e);
View Full Code Here

Examples of org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken()

       
        stsClient.setProperties(properties);
        stsClient.setTokenType(tokenType);
        stsClient.setKeyType(keyType);
       
        return stsClient.requestSecurityToken(endpointAddress);
    }
   
    private SecurityToken requestSecurityTokenTTL(
            String tokenType,
            String keyType,
View Full Code Here

Examples of org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken()

        stsClient.setProperties(properties);
        stsClient.setTokenType(tokenType);
        stsClient.setKeyType(keyType);
        stsClient.setAddressingNamespace("http://www.w3.org/2005/08/addressing");

        return stsClient.requestSecurityToken(endpointAddress);
    }
   
    private List<WSSecurityEngineResult> processToken(SecurityToken token) throws Exception {
        RequestData requestData = new RequestData();
        WSSConfig wssConfig = WSSConfig.getNewInstance();
View Full Code Here

Examples of org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken()

            try {
                String s = SpnegoTokenInterceptorProvider.setupClient(client, message, aim);
                if (maps != null) {
                    client.setAddressingNamespace(maps.getNamespaceURI());
                }
                SecurityToken tok = client.requestSecurityToken(s, Base64.encode(spnegoToken.getToken()));
               
                byte[] wrappedTok = spnegoToken.unwrapKey(tok.getSecret());
                tok.setSecret(wrappedTok);
                spnegoToken.clear();
               
View Full Code Here

Examples of org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken()

                SecurityToken tok = null;
                if (maps != null) {
                    client.setAddressingNamespace(maps.getNamespaceURI());
                }
                tok = client.requestSecurityToken(s);
                String tokenType = tok.getTokenType();
                tok.setTokenType(tokenType);
                if (tokenType == null || "".equals(tokenType)) {
                    tok.setTokenType(WSConstants.WSC_SCT);
                }
View Full Code Here

Examples of org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken()

                SecurityToken tok = null;
                if (maps != null) {
                    client.setAddressingNamespace(maps.getNamespaceURI());
                }
                tok = client.requestSecurityToken(s);
                tok.setTokenType(WSConstants.WSC_SCT);
                return tok;
            } catch (RuntimeException e) {
                throw e;
            } catch (Exception e) {
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.