src/java.security.jgss/share/classes/sun/security/krb5/internal/Krb5.java
branchdatagramsocketimpl-branch
changeset 58678 9cf78a70fa4f
parent 51398 3c389a284345
child 58679 9c3209ff7550
equal deleted inserted replaced
58677:13588c901957 58678:9cf78a70fa4f
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     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
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    70     public static final int TKT_OPTS_RENEWABLE    = 8;
    70     public static final int TKT_OPTS_RENEWABLE    = 8;
    71     public static final int TKT_OPTS_INITIAL      = 9;
    71     public static final int TKT_OPTS_INITIAL      = 9;
    72     public static final int TKT_OPTS_PRE_AUTHENT  = 10;
    72     public static final int TKT_OPTS_PRE_AUTHENT  = 10;
    73     public static final int TKT_OPTS_HW_AUTHENT   = 11;
    73     public static final int TKT_OPTS_HW_AUTHENT   = 11;
    74     public static final int TKT_OPTS_DELEGATE     = 13;
    74     public static final int TKT_OPTS_DELEGATE     = 13;
       
    75     public static final int TKT_OPTS_ENC_PA_REP   = 15;
    75     public static final int TKT_OPTS_MAX          = 31;
    76     public static final int TKT_OPTS_MAX          = 31;
    76 
    77 
    77     // KDC Options
    78     // KDC Options
    78     // (option values defined in KDCOptions.java)
    79     // (option values defined in KDCOptions.java)
    79     public static final int KDC_OPTS_MAX          = 31;
    80     public static final int KDC_OPTS_MAX          = 31;
   162     public static final int PA_ETYPE_INFO    = 11;
   163     public static final int PA_ETYPE_INFO    = 11;
   163     public static final int PA_ETYPE_INFO2   = 19;
   164     public static final int PA_ETYPE_INFO2   = 19;
   164 
   165 
   165     // S4U2user info
   166     // S4U2user info
   166     public static final int PA_FOR_USER      = 129;
   167     public static final int PA_FOR_USER      = 129;
       
   168 
       
   169     // FAST (RFC 6806)
       
   170     public static final int PA_REQ_ENC_PA_REP = 149;
   167 
   171 
   168     //-------------------------------+-------------
   172     //-------------------------------+-------------
   169     //authorization data type        |ad-type value
   173     //authorization data type        |ad-type value
   170     //-------------------------------+-------------
   174     //-------------------------------+-------------
   171     //reserved values                 0-63
   175     //reserved values                 0-63
   265     public static final int KRB_AP_ERR_BADSEQ            = 49;   //Incorrect sequence number in message
   269     public static final int KRB_AP_ERR_BADSEQ            = 49;   //Incorrect sequence number in message
   266     public static final int KRB_AP_ERR_INAPP_CKSUM       = 50;   //Inappropriate type of checksum in message
   270     public static final int KRB_AP_ERR_INAPP_CKSUM       = 50;   //Inappropriate type of checksum in message
   267     public static final int KRB_ERR_RESPONSE_TOO_BIG     = 52;   //Response too big for UDP, retry with TCP
   271     public static final int KRB_ERR_RESPONSE_TOO_BIG     = 52;   //Response too big for UDP, retry with TCP
   268     public static final int KRB_ERR_GENERIC              = 60;   //Generic error (description in e-text)
   272     public static final int KRB_ERR_GENERIC              = 60;   //Generic error (description in e-text)
   269     public static final int KRB_ERR_FIELD_TOOLONG        = 61;   //Field is too long for this implementation
   273     public static final int KRB_ERR_FIELD_TOOLONG        = 61;   //Field is too long for this implementation
       
   274     public static final int KRB_ERR_WRONG_REALM          = 68;   //Wrong realm
   270     public static final int KRB_CRYPTO_NOT_SUPPORT      = 100;    //Client does not support this crypto type
   275     public static final int KRB_CRYPTO_NOT_SUPPORT      = 100;    //Client does not support this crypto type
   271     public static final int KRB_AP_ERR_NOREALM          = 62;
   276     public static final int KRB_AP_ERR_NOREALM          = 62;
   272     public static final int KRB_AP_ERR_GEN_CRED         = 63;
   277     public static final int KRB_AP_ERR_GEN_CRED         = 63;
   273     //  public static final int KRB_AP_ERR_CKSUM_NOKEY          =101;    //Lack of the key to generate the checksum
   278     //  public static final int KRB_AP_ERR_CKSUM_NOKEY          =101;    //Lack of the key to generate the checksum
   274     // error codes specific to this implementation
   279     // error codes specific to this implementation
   302 
   307 
   303     public static String getErrorMessage(int i) {
   308     public static String getErrorMessage(int i) {
   304         return errMsgList.get(i);
   309         return errMsgList.get(i);
   305     }
   310     }
   306 
   311 
   307 
   312     // Warning: used by NativeCreds.c
   308     public static final boolean DEBUG = GetBooleanAction
   313     public static final boolean DEBUG = GetBooleanAction
   309             .privilegedGetProperty("sun.security.krb5.debug");
   314             .privilegedGetProperty("sun.security.krb5.debug");
   310 
   315 
   311     public static final sun.security.util.HexDumpEncoder hexDumper =
   316     public static final sun.security.util.HexDumpEncoder hexDumper =
   312         new sun.security.util.HexDumpEncoder();
   317         new sun.security.util.HexDumpEncoder();