jdk/src/share/classes/javax/crypto/spec/DESKeySpec.java
changeset 10336 0bb1999251f8
parent 5506 202f599c92aa
equal deleted inserted replaced
10335:3c7eda3ab2f5 10336:0bb1999251f8
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2011, 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
   163      *
   163      *
   164      * @return the DES key material. Returns a new array
   164      * @return the DES key material. Returns a new array
   165      * each time this method is called.
   165      * each time this method is called.
   166      */
   166      */
   167     public byte[] getKey() {
   167     public byte[] getKey() {
   168         return (byte[])this.key.clone();
   168         return this.key.clone();
   169     }
   169     }
   170 
   170 
   171     /**
   171     /**
   172      * Checks if the given DES key material, starting at <code>offset</code>
   172      * Checks if the given DES key material, starting at <code>offset</code>
   173      * inclusive, is parity-adjusted.
   173      * inclusive, is parity-adjusted.