You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by di...@apache.org on 2004/08/11 15:36:46 UTC
cvs commit: ws-fx/wss4j/src/org/apache/ws/security/trust2/exception ElementParsingException.java EmptyTokenOrReference.java InvalidSecurityTokenReference.java NonStandardRequestType.java NoRequestType.java NoSoapBody.java NoTokenInResponse.java TrustException.java
dims 2004/08/11 06:36:46
Added: wss4j/src/org/apache/ws/security/trust2/exception
ElementParsingException.java
EmptyTokenOrReference.java
InvalidSecurityTokenReference.java
NonStandardRequestType.java NoRequestType.java
NoSoapBody.java NoTokenInResponse.java
TrustException.java
Log:
Porting David Del Vecchio's code in anticipation of merging this with our code. (http://article.gmane.org/gmane.comp.apache.webservices.fx.devel/1129)
Revision Changes Path
1.1 ws-fx/wss4j/src/org/apache/ws/security/trust2/exception/ElementParsingException.java
Index: ElementParsingException.java
===================================================================
/*
* Copyright 2003-2004 The Apache Software Foundation.
*
* Licensed 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.apache.ws.security.trust2.exception;
/**
* @author ddelvecc
* <p/>
* For when there is a problem trying to create a WS-Trust object from a XML Element.
*/
public class ElementParsingException extends TrustException {
public ElementParsingException(String message) {
super(message);
}
}
1.1 ws-fx/wss4j/src/org/apache/ws/security/trust2/exception/EmptyTokenOrReference.java
Index: EmptyTokenOrReference.java
===================================================================
/*
* Copyright 2003-2004 The Apache Software Foundation.
*
* Licensed 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.apache.ws.security.trust2.exception;
/**
* @author ddelvecc
* <p/>
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
public class EmptyTokenOrReference extends TrustException {
public EmptyTokenOrReference(String message) {
super(message);
}
}
1.1 ws-fx/wss4j/src/org/apache/ws/security/trust2/exception/InvalidSecurityTokenReference.java
Index: InvalidSecurityTokenReference.java
===================================================================
/*
* Copyright 2003-2004 The Apache Software Foundation.
*
* Licensed 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.apache.ws.security.trust2.exception;
/**
* @author ddelvecc
* <p/>
* For when a SecurityTokenReference is invalid or points to nothing.
*/
public class InvalidSecurityTokenReference extends TrustException {
public InvalidSecurityTokenReference(String message) {
super(message);
}
}
1.1 ws-fx/wss4j/src/org/apache/ws/security/trust2/exception/NonStandardRequestType.java
Index: NonStandardRequestType.java
===================================================================
/*
* Copyright 2003-2004 The Apache Software Foundation.
*
* Licensed 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.apache.ws.security.trust2.exception;
/**
* @author ddelvecc
* <p/>
* An exception to indicate that a custom request type was used where standard type (Issue, Renew, Validate) was expected.
*/
public class NonStandardRequestType extends TrustException {
public NonStandardRequestType(String message) {
super(message);
}
}
1.1 ws-fx/wss4j/src/org/apache/ws/security/trust2/exception/NoRequestType.java
Index: NoRequestType.java
===================================================================
/*
* Copyright 2003-2004 The Apache Software Foundation.
*
* Licensed 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.apache.ws.security.trust2.exception;
/**
* @author ddelvecc
* <p/>
* An exception to indicate when a RequestType has not been specified (a violation of the WS-Trust specs).
*/
public class NoRequestType extends TrustException {
public NoRequestType(String message) {
super(message);
}
}
1.1 ws-fx/wss4j/src/org/apache/ws/security/trust2/exception/NoSoapBody.java
Index: NoSoapBody.java
===================================================================
/*
* Copyright 2003-2004 The Apache Software Foundation.
*
* Licensed 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.apache.ws.security.trust2.exception;
/**
* @author ddelvecc
* <p/>
* An exception to indicate that a document lacking a SOAP body element is trying to get used.
*/
public class NoSoapBody extends TrustException {
public NoSoapBody(String message) {
super(message);
}
}
1.1 ws-fx/wss4j/src/org/apache/ws/security/trust2/exception/NoTokenInResponse.java
Index: NoTokenInResponse.java
===================================================================
/*
* Copyright 2003-2004 The Apache Software Foundation.
*
* Licensed 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.apache.ws.security.trust2.exception;
/**
* @author ddelvecc
* <p/>
* An exception to indicate that a <RequestSecurityTokenResponse> message does not contain either a RequestedSecurityToken
* or RequestedProofToken element. WS-Trust requires at least one of the two.
*/
public class NoTokenInResponse extends TrustException {
public NoTokenInResponse(String message) {
super(message);
}
}
1.1 ws-fx/wss4j/src/org/apache/ws/security/trust2/exception/TrustException.java
Index: TrustException.java
===================================================================
/*
* Copyright 2003-2004 The Apache Software Foundation.
*
* Licensed 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.apache.ws.security.trust2.exception;
/**
* @author ddelvecc
* <p/>
* A base class for all the WS-Trust related exceptions.
*/
public class TrustException extends Exception {
public TrustException(String message) {
super(message);
}
}