001/** 002 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 003 * 004 * Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved 005 * 006 * The contents of this file are subject to the terms 007 * of the Common Development and Distribution License 008 * (the License). You may not use this file except in 009 * compliance with the License. 010 * 011 * You can obtain a copy of the License at 012 * https://opensso.dev.java.net/public/CDDLv1.0.html or 013 * opensso/legal/CDDLv1.0.txt 014 * See the License for the specific language governing 015 * permission and limitations under the License. 016 * 017 * When distributing Covered Code, include this CDDL 018 * Header Notice in each file and include the License file 019 * at opensso/legal/CDDLv1.0.txt. 020 * If applicable, add the following below the CDDL Header, 021 * with the fields enclosed by brackets [] replaced by 022 * your own identifying information: 023 * "Portions Copyrighted [year] [name of copyright owner]" 024 * 025 * $Id: Statement.java,v 1.2 2008/06/25 05:47:32 qcheng Exp $ 026 * 027 */ 028 029package com.sun.identity.saml.assertion; 030 031/** 032 * The <code>Statement</code> element is an extension point that allows 033 * other assertion-based applications to reuse the SAML assertion framework. 034 * Its <code>StatementAbstractType</code> complex type is abstract; extension 035 * elements must use <code>xsi:type</code> attribute to indicate the derived 036 * type. 037 * 038 *@supported.all.api 039 */ 040public abstract class Statement { 041 /** 042 * The Statement is not supported. 043 */ 044 public final static int NOT_SUPPORTED = -1; 045 046 /** 047 * The Statement is an Authentication Statement. 048 */ 049 public final static int AUTHENTICATION_STATEMENT = 1; 050 051 /** 052 * The Statement is an Authorization Decision Statement. 053 */ 054 public final static int AUTHORIZATION_DECISION_STATEMENT= 2; 055 056 /** 057 * The Statement is an Attribute Statement. 058 */ 059 public final static int ATTRIBUTE_STATEMENT = 3; 060 061 /** 062 *Default constructor of the statement 063 */ 064 protected Statement() { 065 } 066 067 /** 068 * Returns the real of statement such as 069 * <code>AuthenticationStatement</code>, 070 * <code>AuthorizationDecisionStatement</code> or 071 * <code>AttributeStatement</code>. 072 * 073 * @return real type of Statement. 074 */ 075 public abstract int getStatementType(); 076 077 /** 078 *Creates a String representation of the Statement 079 *@param includeNS : Determines whether or not the namespace qualifier 080 * is prepended to the Element when converted 081 *@param declareNS : Determines whether or not the namespace is declared 082 * within the Element. 083 *@return A String representation of the <code>Statement</code> element 084 */ 085 public abstract String toString(boolean includeNS, boolean declareNS); 086} 087
Copyright © 2010-2017, ForgeRock All Rights Reserved.