< prev index next >

src/java.security.jgss/share/classes/org/ietf/jgss/MessageProp.java

Print this page


   1 /*
   2  * Copyright (c) 2000, 2001, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  25 
  26 package org.ietf.jgss;
  27 
  28 /**
  29  * This is a utility class used within the per-message GSSContext
  30  * methods to convey per-message properties.<p>
  31  *
  32  * When used with the GSSContext interface's wrap and getMIC methods, an
  33  * instance of this class is used to indicate the desired
  34  * Quality-of-Protection (QOP) and to request if confidentiality services
  35  * are to be applied to caller supplied data (wrap only).  To request
  36  * default QOP, the value of 0 should be used for QOP.<p>
  37  *
  38  * When used with the unwrap and verifyMIC methods of the GSSContext
  39  * interface, an instance of this class will be used to indicate the
  40  * applied QOP and confidentiality services over the supplied message.
  41  * In the case of verifyMIC, the confidentiality state will always be
  42  * <code>false</code>.  Upon return from these methods, this object will also
  43  * contain any supplementary status values applicable to the processed
  44  * token.  The supplementary status values can indicate old tokens, out
  45  * of sequence tokens, gap tokens or duplicate tokens.<p>
  46  *
  47  * @see GSSContext#wrap
  48  * @see GSSContext#unwrap
  49  * @see GSSContext#getMIC
  50  * @see GSSContext#verifyMIC
  51  *
  52  * @author Mayank Upadhyay
  53  * @since 1.4
  54  */
  55 public class MessageProp {
  56 
  57     private boolean privacyState;
  58     private int qop;
  59     private boolean dupToken;
  60     private boolean oldToken;
  61     private boolean unseqToken;
  62     private boolean gapToken;
  63     private int minorStatus;
  64     private String minorString;
  65 


   1 /*
   2  * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  25 
  26 package org.ietf.jgss;
  27 
  28 /**
  29  * This is a utility class used within the per-message GSSContext
  30  * methods to convey per-message properties.<p>
  31  *
  32  * When used with the GSSContext interface's wrap and getMIC methods, an
  33  * instance of this class is used to indicate the desired
  34  * Quality-of-Protection (QOP) and to request if confidentiality services
  35  * are to be applied to caller supplied data (wrap only).  To request
  36  * default QOP, the value of 0 should be used for QOP.<p>
  37  *
  38  * When used with the unwrap and verifyMIC methods of the GSSContext
  39  * interface, an instance of this class will be used to indicate the
  40  * applied QOP and confidentiality services over the supplied message.
  41  * In the case of verifyMIC, the confidentiality state will always be
  42  * <code>false</code>.  Upon return from these methods, this object will also
  43  * contain any supplementary status values applicable to the processed
  44  * token.  The supplementary status values can indicate old tokens, out
  45  * of sequence tokens, gap tokens or duplicate tokens.
  46  *
  47  * @see GSSContext#wrap
  48  * @see GSSContext#unwrap
  49  * @see GSSContext#getMIC
  50  * @see GSSContext#verifyMIC
  51  *
  52  * @author Mayank Upadhyay
  53  * @since 1.4
  54  */
  55 public class MessageProp {
  56 
  57     private boolean privacyState;
  58     private int qop;
  59     private boolean dupToken;
  60     private boolean oldToken;
  61     private boolean unseqToken;
  62     private boolean gapToken;
  63     private int minorStatus;
  64     private String minorString;
  65 


< prev index next >