001: /*
002: * BasicSecurityProfile.java
003: *
004: * Created on April 16, 2007, 3:08 PM
005: *
006: * To change this template, choose Tools | Template Manager
007: * and open the template in the editor.
008: */
009:
010: package com.sun.xml.wss;
011:
012: /**
013: *
014: * @author K.Venugopal@sun.com
015: */
016: import com.sun.xml.wss.impl.XWSSecurityRuntimeException;
017: import com.sun.xml.wss.logging.LogDomainConstants;
018: import com.sun.xml.wss.logging.LogStringsMessages;
019: import java.util.logging.Level;
020: import java.util.logging.Logger;
021:
022: public final class BasicSecurityProfile {
023:
024: private boolean timeStampFound = false;
025: private static Logger log = Logger.getLogger(
026: LogDomainConstants.WSS_API_DOMAIN,
027: LogDomainConstants.WSS_API_DOMAIN_BUNDLE);
028:
029: /** Creates a new instance of BasicSecurityProfile */
030: public BasicSecurityProfile() {
031: }
032:
033: /**
034: *
035: */
036: public final static void log_bsp_3203() {
037: log.log(Level.SEVERE, LogStringsMessages
038: .BSP_3203_ONECREATED_TIMESTAMP());
039: throw new XWSSecurityRuntimeException(LogStringsMessages
040: .BSP_3203_ONECREATED_TIMESTAMP());
041: }
042:
043: /**
044: *
045: */
046: public final static void log_bsp_3224() {
047: log.log(Level.SEVERE, LogStringsMessages
048: .BSP_3224_ONEEXPIRES_TIMESTAMP());
049: throw new XWSSecurityRuntimeException(LogStringsMessages
050: .BSP_3224_ONEEXPIRES_TIMESTAMP());
051: }
052:
053: /**
054: *
055: * @param elementName
056: */
057: public final static void log_bsp_3222(String elementName) {
058: log
059: .log(
060: Level.SEVERE,
061: LogStringsMessages
062: .BSP_3222_ELEMENT_NOT_ALLOWED_UNDER_TIMESTMP(elementName));
063: throw new XWSSecurityRuntimeException(
064: LogStringsMessages
065: .BSP_3222_ELEMENT_NOT_ALLOWED_UNDER_TIMESTMP(elementName));
066: }
067:
068: /**
069: *
070: */
071: public final static void log_bsp_3221() {
072: log.log(Level.SEVERE, LogStringsMessages
073: .BSP_3221_CREATED_BEFORE_EXPIRES_TIMESTAMP());
074: throw new XWSSecurityRuntimeException(LogStringsMessages
075: .BSP_3221_CREATED_BEFORE_EXPIRES_TIMESTAMP());
076: }
077:
078: /**
079: *
080: * @throws com.sun.xml.wss.XWSSecurityException
081: */
082: public final static void log_bsp_3227() throws XWSSecurityException {
083: log.log(Level.SEVERE, LogStringsMessages
084: .BSP_3227_SINGLE_TIMESTAMP());
085: throw new XWSSecurityException(LogStringsMessages
086: .BSP_3227_SINGLE_TIMESTAMP());
087: }
088:
089: /**
090: *
091: */
092: public final static void log_bsp_3225() {
093: log.log(Level.SEVERE, LogStringsMessages
094: .BSP_3225_CREATED_VALUE_TYPE_TIMESTAMP());
095: throw new XWSSecurityRuntimeException(LogStringsMessages
096: .BSP_3225_CREATED_VALUE_TYPE_TIMESTAMP());
097: }
098:
099: /**
100: *
101: */
102: public final static void log_bsp_3226() {
103: log.log(Level.SEVERE, LogStringsMessages
104: .BSP_3226_EXPIRES_VALUE_TYPE_TIMESTAMP());
105: throw new XWSSecurityRuntimeException(LogStringsMessages
106: .BSP_3226_EXPIRES_VALUE_TYPE_TIMESTAMP());
107: }
108:
109: /**
110: *
111: * @throws com.sun.xml.wss.XWSSecurityException
112: */
113: public final static void log_bsp_3104() throws XWSSecurityException {
114: log.log(Level.WARNING, LogStringsMessages
115: .BSP_3104_ENVELOPED_SIGNATURE_DISCORAGED());
116: }
117:
118: /**
119: *
120: * @param value
121: */
122: public void setTimeStampFound(boolean value) {
123: this .timeStampFound = value;
124: }
125:
126: /**
127: *
128: * @return
129: */
130: public boolean isTimeStampFound() {
131: return timeStampFound;
132: }
133:
134: }
|