blob: 302e0e9c22b362e7c4455a8b40e97c319565b809 [file] [log] [blame]
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.swssf.wss.impl.securityToken;
import org.swssf.wss.ext.WSSConstants;
import org.swssf.wss.ext.WSSecurityContext;
import org.swssf.wss.crypto.Crypto;
import org.apache.xml.security.stax.ext.SecurityToken;
import org.apache.xml.security.stax.ext.XMLSecurityConstants;
import org.apache.xml.security.stax.ext.XMLSecurityException;
import org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken;
import javax.security.auth.callback.CallbackHandler;
import java.security.Key;
import java.security.PublicKey;
import java.security.cert.X509Certificate;
/**
* @author $Author$
* @version $Revision$ $Date$
*/
public class SecureConversationSecurityToken extends AbstractSecurityToken {
//todo implement
public SecureConversationSecurityToken(WSSecurityContext wsSecurityContext, Crypto crypto,
CallbackHandler callbackHandler, String id,
WSSConstants.KeyIdentifierType keyIdentifierType) {
super(wsSecurityContext, callbackHandler, id, keyIdentifierType);
}
public boolean isAsymmetric() {
return false;
}
protected Key getKey(String algorithmURI, XMLSecurityConstants.KeyUsage keyUsage) throws XMLSecurityException {
return null;
}
protected PublicKey getPubKey(String algorithmURI, XMLSecurityConstants.KeyUsage keyUsage) throws XMLSecurityException {
return null;
}
public X509Certificate[] getX509Certificates() throws XMLSecurityException {
return null;
}
public void verify() throws XMLSecurityException {
}
public SecurityToken getKeyWrappingToken() {
return null;
}
public XMLSecurityConstants.TokenType getTokenType() {
return WSSConstants.SecureConversationToken;
}
}